Skip to content

Ignore npm's bundled brace-expansion and undici findings until npm updates them - #24

Merged
csandanov merged 2 commits into
masterfrom
chore/npm-scan-exceptions
Oct 14, 2026
Merged

csandanov merged 2 commits into
masterfrom
chore/npm-scan-exceptions

Conversation

@csandanov

Copy link
Copy Markdown
Member

Problem

The release scan fails for every Node image, so no new image revision can be published.

Cause

npm bundles its own copies of brace-expansion 5.0.9 and undici 6.28.0. Both have high-severity vulnerabilities with fixes upstream. npm has not picked up the fixes yet: the latest releases, 11.21.0 and 12.2.0, still bundle the same versions. Updating npm in the image doesn't help.

Solution

Ignore these three findings temporarily, only for npm's own copies. The same packages anywhere else in an image, and every other vulnerability, still fail the scan. Medium and low findings are still reported. #23 tracks removing the exceptions once npm ships the fixes, by 2026-11-15 at the latest.

Details

.grype.yaml ignores:

Package Version Vulnerability
brace-expansion 5.0.9 CVE-2026-102276
brace-expansion 5.0.9 CVE-2026-102278
undici 6.28.0 CVE-2026-19534

Each rule is limited to /usr/local/lib/node_modules/npm/**.

Validation

I built the Node 26.11.1 image locally (linux/arm64) and ran Grype v0.118.0 with the release gate's flags (--fail-on high --only-fixed --by-cve, squashed scope):

  • Without .grype.yaml, it fails on exactly these three findings.
  • With .grype.yaml, it passes. The remaining medium and low findings are still listed.

Refs #23

…dates them

npm bundles brace-expansion 5.0.9 and undici 6.28.0, which have high-severity fixes upstream, and the latest npm releases still ship them, so the release scan fails for every image. The exceptions cover only npm's own copies under /usr/local/lib/node_modules/npm and are tracked in #23 for removal by 2026-11-15.
Match the other Wodby images: keep accepted findings visible in the report and limit each rule to npm packages.
@csandanov
csandanov merged commit 93635ff into master Oct 14, 2026
7 checks passed
@csandanov
csandanov deleted the chore/npm-scan-exceptions branch October 14, 2026 08:55
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