Skip to content

Override js-yaml@<=2.0.4 to 3.14.2 to fix code execution vulnerability#5721

Closed
BPapp-MS wants to merge 1 commit intomicrosoft:mainfrom
BPapp-MS:fix/js-yaml-vulnerability
Closed

Override js-yaml@<=2.0.4 to 3.14.2 to fix code execution vulnerability#5721
BPapp-MS wants to merge 1 commit intomicrosoft:mainfrom
BPapp-MS:fix/js-yaml-vulnerability

Conversation

@BPapp-MS
Copy link
Copy Markdown
Contributor

@BPapp-MS BPapp-MS commented Mar 24, 2026

Summary

Overrides earlier versions of js-yaml, which had a code execution vulnerability. major version 3 is the easiest to override to, since earlier versions required replacing .load() with .safeLoad().

Details

Trying to address the following vulnerability:
https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/

How it was tested

Ran rush test

Impacted documentation

N/A

@bmiddha
Copy link
Copy Markdown
Member

bmiddha commented Mar 24, 2026

bump diff: nodeca/js-yaml@2.0.4...3.14.2
changelog: https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md

v2 to v3 seems to have a refactor bump. but still take a closer look at the API and behavior changes. consider bumping the packages that are bringing in js-yaml dependency to rushstack.

@BPapp-MS BPapp-MS closed this Mar 24, 2026
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Mar 24, 2026
@BPapp-MS
Copy link
Copy Markdown
Contributor Author

Need to update the override to include lower versions, will make a new PR when ready. Will look into bumping intermediate layers as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants