cvelo
P2 · HighCVSS 8.0EPSS 0.3%

Contentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs

  • CVE-2026-129947
  • GHSA-gxcv-hr94-jjmj
  • EUVD-2026-126424

Description

Contentlayer @contentlayer/core through 0.3.4 contains a code injection vulnerability that allows attackers to inject JavaScript by embedding single quotes in content file names. Attackers can add a content file whose name breaks out of the import specifier in makeDataExportFile(), executing injected code when contentlayer dev or a Next.js dev server imports the generated module.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • contentlayerdev @contentlayer/core

    Affected versionsFixed in
    up to 0.3.4none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.