Skip to content

fix js-yaml vulnerability (transitive dependency)#678

Open
karen-stepanyan wants to merge 2 commits intomainfrom
fix-js-yaml-dep
Open

fix js-yaml vulnerability (transitive dependency)#678
karen-stepanyan wants to merge 2 commits intomainfrom
fix-js-yaml-dep

Conversation

@karen-stepanyan
Copy link
Contributor

@karen-stepanyan karen-stepanyan commented Feb 6, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

👋 karen-stepanyan, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

NPM Publishing labels 🏷️

🔵 This PR has the none label set and it will not cause a version bump.

package.json Outdated
"arrowParens": "always"
},
"resolutions": {
"**/js-yaml": "3.14.2"
Copy link
Contributor

@alecgard alecgard Feb 6, 2026

Choose a reason for hiding this comment

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

Will this break the dependencies that need the next major version js-yaml@^4.1.0?

I'm wondering if we can instead only resolve the concerning version e.g.

"**/js-yaml@3.14.1": "^3.14.2"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it will break, but I changed it to supertap/js-yaml which seems to be the issue. unfortunately ava dependency that we use is on latest version, but is using older dependency internally, so we have to use resolutions

Copy link
Contributor

@alecgard alecgard Feb 6, 2026

Choose a reason for hiding this comment

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

Is there any issue with targeting 3.14.1 for resolution specifically? Rather than all versions of supertap/js-yaml

Copy link
Contributor

Choose a reason for hiding this comment

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

Also can we use ^3.14.2, so we still pick up new versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

3.14.1 contains the vulnerability. the minimum version should be 3.14.2.
all of other deps are actually locked to a specific version, and we let depandabot or renovate bot to handle package updates.

@dskloetc
Copy link
Contributor

dskloetc commented Feb 6, 2026

Are we actually at risk of parsing untrusted yaml? Or can we just wait for ava to update their dependencies?

@karen-stepanyan
Copy link
Contributor Author

I don't think we are at risk, but we have to resolve those security issues now.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants