Security: fix yaml Uncontrolled Recursion vulnerabilities#3362
Closed
sh0ji wants to merge 3 commits into
Closed
Conversation
…solution Forces cosmiconfig to ^8.0.0 via yarn resolutions, replacing yaml@1.10.2 (SNYK-JS-YAML-15765520) with js-yaml@4 in the babel-plugin-macros dependency chain. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds js-yaml resolution alongside the cosmiconfig upgrade; cosmiconfig@8 pulls in js-yaml@4.1.0 which has SNYK-JS-JSYAML-13961110 (CVE-2025-64718). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
v9 is the current stable release; ^8.0.0 was unnecessarily conservative. Both eliminate yaml@1.10.2 and the API used by babel-plugin-macros is unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Member
Author
|
no good, Claude! |
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.
Note
This PR was opened by Claude Code running the security-fixer agent. The listed author did not write or manually review these changes.
Security Fix — yaml (Uncontrolled Recursion)
Issues Fixed
CVEs Resolved
Changes
Added two Yarn
resolutionsentries inpackage.json:"cosmiconfig": "^8.0.0"— upgrades cosmiconfig from v7 to v8, which switches from the vulnerableyaml@1.10.2tojs-yaml. Chain:@emotion/react/@emotion/styled → @emotion/babel-plugin → babel-plugin-macros → cosmiconfig@7 → yaml@1.10.2."js-yaml": ">=4.1.1"— cosmiconfig@8 depends onjs-yaml@4.1.0which has Prototype Pollution; this resolution pins it to the patched4.1.1.Strategy (SCA)
Strategy D — Yarn
resolutionsoverride. Breakability risk: low — cosmiconfig v7→v8 is API-compatible; js-yaml 4.1.1 is a patch-only bump.Validation
Run Metrics
2m 10s1m 49s4m 35s9m 16sModel:
claude-sonnet-4-6· Est. cost: ~$0.55🤖 Generated with security-fixer