Security: js-yaml prototype-pollution vulnerability via bundled dependency #178
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
gray-matter transitively depends on a vulnerable js-yaml version (<4.1.1) which is subject to prototype pollution (GHSA-mh29-5h37-fv8m / CVE-2025-64718). This causes npm audit to report a moderate severity vulnerability for projects that install gray-matter.
Reproduction (local output from my project):
Expected behavior:
gray-matter releases should not depend on js-yaml versions older than 4.1.1. Projects installing gray-matter should not trigger an npm audit vulnerability for js-yaml.
References:
Notes:
yaml.safeLoad/yaml.safeDump.yaml.safeLoadandyaml.safeDump, so consumers cannot safely upgrade js-yaml themselves without a gray-matter change.Looks like the fix for this problem was already implemented in PR #176, should be safe to merge and upgrade bundled dependency.
Hi @jonschlinkert, when can we expect this PR to be merged?
@vladajankovic Fortunately,
js-yamlalso put out a maintenance release from the 3.x series, you can update to that without having to updategray-matteritself.this is still an issue today. Sonartype is still marking js-yaml 3.14.2 as vulnerable to: