build(deps): fix Dependabot alerts for transitive @babel/core and js-yaml#1189
Merged
Merged
Conversation
Addresses two Dependabot security alerts in transitive dependencies: - @babel/core (GHSA-4x5r-pxfx-6jf8, low): Arbitrary File Read via sourceMappingURL Comment. Vulnerable versions <=7.29.0. The transitive @babel/core@^7 pulled in via @jest/transform@29.7.0 was resolving to 7.29.0. Bumped to 7.29.7 (first patched 7.x release). - js-yaml (GHSA-h67p-54hq-rp68, moderate): Quadratic-complexity DoS in merge key handling via repeated aliases. Vulnerable versions >=4.0.0 <=4.1.1. The transitive js-yaml@^4.1.0 pulled in via eslint@8.57.1 was resolving to 4.1.1. Bumped to 4.3.0 (first patched 4.x release). Both fixes are lockfile-only (no changes to package.json), performed via 'yarn up --recursive' so no additional 'resolutions' entries are required. Tests, type-check, build, and lint all pass. Co-authored-by: Andreja Kogovsek <andrejak@users.noreply.github.com>
Author
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
andrejak
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes two Dependabot security alerts affecting transitive dependencies in
yarn.lock. Lockfile-only change — no updates topackage.jsonand no newresolutionsentries required.Vulnerabilities addressed
@babel/core(transitive via@jest/transform@29.7.0)<=7.29.07.29.07.29.7js-yaml(transitive viaeslint@8.57.1)>=4.0.0 <=4.1.14.1.14.3.0After the bump,
yarn npm audit --recursive --all --no-deprecationsreportsNo audit suggestions.Approach
Both advisories are in transitive dependencies where bumping the direct dependent would require a major upgrade (ESLint 8 → 9 with flat-config migration; Jest 29 → 30). Instead, this uses
yarn up @babel/core --recursiveandyarn up js-yaml --recursive, which only rewrites the lockfile entries for the vulnerable ranges to their patched versions:@babel/core@npm:^7.11.6, ^7.12.3, ^7.23.9→7.29.7(still within the ranges requested by babel-jest et al.)js-yaml@npm:^4.1.0→4.3.0(still within the range requested by eslint 8.57.1)js-yaml@npm:^3.13.1is left untouched at3.15.0(unaffected).No new
resolutionsare introduced — the existingresolutionsblock inpackage.jsonis unchanged.Verification
yarn install→ cleanyarn npm audit --recursive --all --no-deprecations→ no findingsyarn test→ 37 suites, 139 tests passingyarn build:test→ success (tsc + rollup)yarn lint→ 0 errors (58 pre-existing spellcheck warnings, unchanged)