Skip to content

fix(deps): resolve js-yaml CVE-2026-84375 - #86

Merged
asachs01 merged 1 commit into
mainfrom
fix/js-yaml-advisory
Sep 15, 2026
Merged

asachs01 merged 1 commit into
mainfrom
fix/js-yaml-advisory

Conversation

@asachs01

@asachs01 asachs01 commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Resolves the open HIGH Dependabot advisory GHSA-2883-xcg3-v3hh / CVE-2026-84375 for js-yaml (vulnerable range >= 4.0.0 < 4.3.2), clearing Vanta's High vulnerabilities test.

js-yaml is a dev-only transitive dependency pulled by cosmiconfig and @eslint/eslintrc (via semantic-release). Applied a scoped npm override to force >= 4.3.2 (same pattern used in wyre-technology/afkbot):

"overrides": { "cosmiconfig": { "js-yaml": "^4.3.2" }, "@eslint/eslintrc": { "js-yaml": "^4.3.2" } }

Verification

  • npm audit: 0 vulnerabilities (js-yaml advisory gone)
  • js-yaml resolves to 4.3.2 in the lockfile
  • npm run build, npm run lint, npm run typecheck, and npm test all pass

Supersedes Dependabot PR #85 (bare lockfile bump) — the scoped override is self-documenting and prevents regression on re-resolution.

Closes advisory #46.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores
    • Updated dependency resolution to use a consistent js-yaml version for improved compatibility and security.

Force js-yaml >= 4.3.2 via a scoped npm override on cosmiconfig and @eslint/eslintrc
(the transitive parent(s) of js-yaml), clearing the HIGH advisory
GHSA-2883-xcg3-v3hh (CVE-2026-84375, vulnerable range >= 4.0.0 < 4.3.2).
js-yaml is a dev-only transitive dependency.

npm audit: 0 vulnerabilities. Build, lint, typecheck, and tests all pass.
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 0efb8519-626f-4cdf-8f83-f959324cceab

📥 Commits

Reviewing files that changed from the base of the PR and between 341e29e and 0d25a76.

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

Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The package configuration now overrides js-yaml to ^4.3.2 for cosmiconfig and @eslint/eslintrc.

Changes

Dependency resolution

Layer / File(s) Summary
js-yaml package overrides
package.json
Adds overrides that resolve js-yaml to ^4.3.2 under cosmiconfig and @eslint/eslintrc.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 0d25a

The change is limited to scoped dependency resolution updates with no identified merge-blocking impact.

🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Changelog Entry ⚠️ Warning The PR changes project dependency configuration in package.json by adding scoped npm overrides for cosmiconfig and @eslint/eslintrc. The PR also updates package-lock.json to resolve js-yaml to 4.3.2. … Add a corresponding entry under ## [Unreleased] in the Security section for the js-yaml security remediation and scoped npm overrides.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the dependency fix and names the specific js-yaml CVE addressed by the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Changelog Entry

Explanation

The PR changes project dependency configuration in package.json by adding scoped npm overrides for cosmiconfig and @eslint/eslintrc. The PR also updates package-lock.json to resolve js-yaml to 4.3.2. CHANGELOG.md is unchanged, so no entry was added under ## [Unreleased].

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/js-yaml-advisory
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fix/js-yaml-advisory

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

@asachs01
asachs01 merged commit 358442e into main Sep 15, 2026
4 checks passed
@asachs01
asachs01 deleted the fix/js-yaml-advisory branch September 15, 2026 16:34
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