Skip to content

fix(deps): bump the nested js-yaml to 4.3.2 - #66

Merged
CybotTM merged 1 commit into
mainfrom
fix/js-yaml-advisory
Sep 10, 2026
Merged

fix(deps): bump the nested js-yaml to 4.3.2#66
CybotTM merged 1 commit into
mainfrom
fix/js-yaml-advisory

Conversation

@CybotTM

@CybotTM CybotTM commented Sep 10, 2026

Copy link
Copy Markdown
Member

npm audit fails on every pull request in this repository with one high-severity finding: js-yaml 4.0.0 – 4.3.1, "maxTotalMergeKeys does not limit CPU use for empty merge sources" (GHSA-2883-xcg3-v3hh), reached through node_modules/astro/node_modules/js-yaml. It is also open as Dependabot alert 75 on the default branch.

Only that one copy was affected, which is what makes the fix small. The direct dependency is already on 5.4.1, and @astrojs/internal-helpers had resolved 4.3.2 — astro's nested copy was simply pinned in the lock file at 4.3.1, inside a range that already admits the fixed version. So this is a lock refresh, not a constraint change: package.json is untouched and no overrides entry is needed. A blanket override would have been wrong here — it would have dragged the top-level js-yaml from 5.4.1 down to 4.x.

npm update js-yaml --package-lock-only produces the three-line diff below: one version, one resolved.

Verified locally: npm audit --audit-level=high reports found 0 vulnerabilities and exits 0, where the same command exits 1 on main.

Dependabot opened an update for this advisory on 2026-09-09 and its job failed, which is why the finding was still open.

This unblocks #65, which is currently UNSTABLE solely because of this check.

Assisted by claude-code:claude-opus-5 — Session

npm audit fails on every pull request with one high-severity finding:
js-yaml 4.0.0 - 4.3.1, "maxTotalMergeKeys does not limit CPU use for empty
merge sources" (GHSA-2883-xcg3-v3hh), reached through
node_modules/astro/node_modules/js-yaml.

Only that one copy was affected. The direct dependency is already on 5.4.1 and
@astrojs/internal-helpers had resolved 4.3.2; astro's nested copy was simply
pinned in the lock file at 4.3.1, within a range that admits the fixed
version. So this is a lock refresh, not a constraint change: package.json is
untouched and no overrides entry is needed.

`npm update js-yaml --package-lock-only` produces a three-line diff, one
version and one resolved URL. `npm audit --audit-level=high` then reports
"found 0 vulnerabilities" and exits 0, where it exited 1 before.

Dependabot opened an update for this advisory on 2026-09-09 and its job
failed, which is why the finding was still open.

Assisted-by: claude-code:claude-opus-5
Agent-Session: https://claude.ai/code/session_01AXRGd6GWAC7TLK3wuiYeGg
Agent-Host: 0493f0
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 169620f5-d3a1-4151-8abe-24c8d6f80489

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • package-lock.json

@CybotTM
CybotTM marked this pull request as ready for review September 10, 2026 09:57
Copilot AI lite review requested due to automatic review settings September 10, 2026 09:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@CybotTM
CybotTM merged commit 351a9f6 into main Sep 10, 2026
13 checks passed
@CybotTM
CybotTM deleted the fix/js-yaml-advisory branch September 10, 2026 09:58
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.

2 participants