{"id":"CVE-2026-129948","published":"2026-11-16T15:06:09Z","modified":"2026-11-17T16:22:48Z","title":"Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter","vendor":"contentlayerdev","product":"@contentlayer/source-files","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0034,"percentile":0.28205,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/contentlayerdev/contentlayer/issues/688","tags":["issue-tracking"]},{"url":"https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter","tags":["third-party-advisory"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":5.64},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"contentlayerdev","affectedVersions":[{"vendor":"contentlayerdev","product":"@contentlayer/source-files","versions":["<= 0.3.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-17T16:06:24.166964Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-126423","exploited":false,"provenance":"source"}}