Skip to content

fix: bump js-yaml to ^4.3.1 to resolve GHSA-5p4m-2wfm-xmqj - #200

Merged
0x74696D merged 2 commits into
mainfrom
tim.mannai/js-yaml-4.3.1-bump
Aug 13, 2026
Merged

fix: bump js-yaml to ^4.3.1 to resolve GHSA-5p4m-2wfm-xmqj#200
0x74696D merged 2 commits into
mainfrom
tim.mannai/js-yaml-4.3.1-bump

Conversation

@0x74696D

Copy link
Copy Markdown
Collaborator

js-yaml versions >=4.0.0 <4.3.1 are affected by GHSA-5p4m-2wfm-xmqj (CVSS 7.5).
This package's declared js-yaml range (^4.1.1, set in 5.0.2) still permits npm/yarn resolving a vulnerable version for anything that installs this package as a dependency (including dd-trace) — a resolutions/overrides entry in a consumer's own package.json cannot fix this, since npm only honors those fields in the root project, not in transitively-installed packages. The only fix that protects downstream installs is tightening the range here.
Tightens js-yaml to ^4.3.1 and bumps the package version to 5.0.3 so consumers resolve the patched version.
Context
Reported by a customer against dd-trace (Node.js tracer), which depends on this package. See related fix in dd-trace-js: DataDog/dd-trace-js#9768 (blocked on this release).

Leave the package version bump/release out of this PR; that's a separate
step for whoever cuts the next release (release.yml triggers off a
pushed git tag, not off package.json's version field).

Signed-off-by: Tim VM@DD <tim.mannai@datadoghq.com>
@0x74696D
0x74696D requested review from a team as code owners August 12, 2026 08:51
@IlyasShabi

Copy link
Copy Markdown
Collaborator

I fixed the failed test. Can you rebase on main and push please?

@0x74696D
0x74696D merged commit 6946cbd into main Aug 13, 2026
35 checks passed
@0x74696D
0x74696D deleted the tim.mannai/js-yaml-4.3.1-bump branch August 13, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants