Skip to content

Release 1.0.4: clear osv-scanner high findings - #59

Merged
eddietejeda merged 1 commit into
mainfrom
release/1.0.4
Oct 19, 2026
Merged

eddietejeda merged 1 commit into
mainfrom
release/1.0.4

Conversation

@eddietejeda

Copy link
Copy Markdown
Contributor

The v1.0.3 release build failed Grafana's plugin validator: osv-scanner found 3 high-severity issues in package-lock.json (all dev/build tooling). That also caused the validator's LLM review and code diff to be skipped.

  • basic-ftp → 6.2.3 (GHSA-c475-qrg2-pj4r, via @grafana/sign-plugin)
  • source-map-js → 1.2.2 (GHSA-68fv-2mgg-jv7q)
  • braces (GHSA-vfj7-8cjw-p6xm) has no fixed release; its only consumer is eslint-webpack-plugin → micromatch. Override micromatch with picomatch, which provides the same isMatch(str, patterns, options) the plugin uses and expands {ts,tsx} without braces. Only affects development builds.

The validator ignores osv-scanner.toml, so the fix has to be in the lockfile.

Verified locally: osv-scanner reports no high/critical; typecheck, lint, dev and prod builds pass.

@eddietejeda
eddietejeda requested a review from a team as a code owner October 19, 2026 18:34
@eddietejeda
eddietejeda requested review from rohan-hotdata and removed request for a team October 19, 2026 18:34
Comment thread package.json
"moment": "^2.31.0",
"basic-ftp": "^6.2.3",
"source-map-js": "^1.2.2",
"micromatch": "npm:picomatch@^4.0.3"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Scope the micromatch override to eslint-webpack-plugin (not blocking).

"eslint-webpack-plugin": {
  "micromatch": "npm:picomatch@^4.0.3"
}

The global override replaces micromatch for every package in the tree. picomatch only provides part of the micromatch API, and micromatch(list, patterns) and micromatch.some are not in picomatch. A future dependency that calls those functions fails at runtime, and npm install gives no warning. Today eslint-webpack-plugin is the only consumer in package-lock.json, so the scoped override produces the same lockfile.

@eddietejeda
eddietejeda merged commit 23a2526 into main Oct 19, 2026
11 checks passed
@eddietejeda eddietejeda mentioned this pull request Oct 19, 2026
@eddietejeda
eddietejeda deleted the release/1.0.4 branch October 19, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant