Bug 2573944 (CVE-2026-129948)

Summary: CVE-2026-129948 @contentlayer/source-files: @contentlayer/source-files: Arbitrary code execution via JavaScript frontmatter
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerability-draftAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in @contentlayer/source-files. This vulnerability allows an attacker who can modify or supply content files to achieve arbitrary code execution during the application build process. By introducing JavaScript frontmatter delimiters into Markdown or MDX files, the parser executes embedded scripts instead of parsing them as static metadata. This can allow attackers to execute unauthorized commands and expose sensitive secrets within the build environment.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-16 21:50:28 UTC
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.