PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-129948 contentlayerdev CVE debrief

CVE-2026-129948 is a high-severity vulnerability in Contentlayer's @contentlayer/source-files package, allowing code injection via JavaScript frontmatter in Markdown or MDX files. This vulnerability, with a CVSS score of 8.7, enables attackers to execute JavaScript during the build process, potentially exposing CI build secrets. The issue affects versions up to 0.3.4 and is tracked in various sources, including the CVE Program, NVD, and supplemental references.

Vendor
contentlayerdev
Product
@contentlayer/source-files
CVSS
HIGH 8.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-16
Original CVE updated
2026-11-17
Advisory published
2026-11-16
Advisory updated
2026-11-17

Who should care

Defenders responsible for Contentlayer deployments, CI/CD pipeline management, and build processes should assess exposure and prioritize remediation. Development teams using @contentlayer/source-files and security teams monitoring for potential code injection attacks should also be aware of this vulnerability.

Why it matters

CVE-2026-129948 is a high-severity code injection vulnerability in Contentlayer's @contentlayer/source-files package. Defenders should prioritize verifying exposure, checking for patches, and monitoring build processes to prevent potential code execution and exposure of CI build secrets.

  • Potential exposure of CI build secrets due to code execution during build
  • Possible unauthorized code execution in build processes
  • Need for verification of affected versions and inventory checks
  • Priority for applying patches or mitigations to prevent exploitation

Technical summary

The @contentlayer/source-files package through version 0.3.4 is vulnerable to code injection via JavaScript frontmatter in Markdown or MDX files. Attackers controlling content files can exploit this by starting a file with ---js or ---javascript frontmatter delimiters, allowing code execution during the build process. This vulnerability is tracked as CVE-2026-129948 and has a CVSS score of 8.7, indicating high severity.

Defensive priority

Defenders should prioritize verifying affected versions, checking for exposed build secrets, and applying patches or mitigations.

Recommended defensive actions

  • Verify if @contentlayer/source-files is used in the environment and assess exposure
  • Check for and apply patches or updates to version 0.3.4 or later
  • Review build processes and CI/CD pipelines for potential exposure of secrets
  • Monitor for suspicious activity related to Markdown or MDX files
  • Perform an inventory check of affected versions and prioritize remediation
  • Implement compensating controls for exposed systems while remediation is scheduled
  • Track exceptions and retest remediated assets

Evidence notes

The CVE record and source item provide details on the vulnerability, affected versions, and references. Additional information on exploitation, impact, and remediation may be limited. Defenders should verify exposure, check for patches, and monitor build processes. Evidence from Contentlayer's issue tracking and technical descriptions indicate a high-severity code injection vulnerability. However, explicit verification steps and defensive measures are required to address potential CI build secret exposure and unauthorized code

Sources and references

Verified primary and authoritative sources

  • CVE-2026-129948 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-129948

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-129948 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-129948

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/129xxx/CVE-2026-129948.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/contentlayerdev/contentlayer/issues/688

    Supplemental source - issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts

    Supplemental source - technical-description

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.