You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update js-yaml dependency from ^3.13.1 to ^4.x (security: GHSA-h67p-54hq-rp68) #12174
js-yaml <=4.1.1 flagged as vulnerable (GHSA-h67p-54hq-rp68, moderate DoS).
Root cause: @docusaurus/utils → [email protected] → js-yaml@^3.13.1. gray-matter uses removed yaml.safeLoad() API so it cannot be upgraded to js-yaml 4.x via npm overrides without breaking the docs build.
I know this is not what you want to hear, but Docusaurus v3 is not really affected by this vulnerability. Front Matter is parsed from MDX docs, which should be treated as unsafe code, and changes should be carefully reviewed before merging.
If you allow malicious inputs in MDX files, you have a bigger problem than DOS because the attacker can run arbitrary code on your dev machine/server, including DOS payloads.
Activity
slorber commentedon Jun 18, 2026
I know this is not what you want to hear, but Docusaurus v3 is not really affected by this vulnerability. Front Matter is parsed from MDX docs, which should be treated as unsafe code, and changes should be carefully reviewed before merging.
If you allow malicious inputs in MDX files, you have a bigger problem than DOS because the attacker can run arbitrary code on your dev machine/server, including DOS payloads.
Unfortunately, gray-matter is unmaintained and will likely not merge a fix: jonschlinkert/gray-matter#189
Fortunately, there's a slimmer fork of it we could use. I'll have to see if it's retrocompatible enough and could be backported to v3.
https://github.com/11ty/gray-matter
Vladyslav-Chychykalo commentedon Jun 19, 2026
@slorber Great, it works, thank you!
tats-u commentedon Jun 26, 2026
FYI, for those annoyed with GHSA and using pnpm: