{"id":"CVE-2026-129948","summary":"Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter","details":"Contentlayer @contentlayer/source-files through 0.3.4 contains a code injection vulnerability that allows attackers who control content files to execute JavaScript by abusing gray-matter's still-enabled JavaScript engine in parseMarkdown(). Attackers can start a Markdown or MDX file with a ---js or ---javascript frontmatter delimiter to run code during build, exposing CI build secrets.","modified":"2026-11-18T20:45:50.184419343Z","published":"2026-11-16T15:06:09.912Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-95"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129948.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129948.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129948"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter"},{"type":"REPORT","url":"https://github.com/contentlayerdev/contentlayer/issues/688"},{"type":"PACKAGE","url":"https://github.com/contentlayerdev/contentlayer"},{"type":"ARTICLE","url":"https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/contentlayerdev/contentlayer","events":[{"introduced":"0"},{"last_affected":"b0f7f72173c8b22ebd9b3173370daaae08f43d73"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"0.3.4"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"0"},{"last_affected":"0.3.4"}],"source":"DESCRIPTION"}]}}],"versions":["v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.9","v0.2.8","v0.2.7","v0.2.6","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.1.2","v0.1.1","v0.1.0","v0.0.34","v0.0.33","v0.0.32","v0.0.31","v0.0.30","v0.0.28","v0.0.27"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129948.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}