Skip to content
Threat Brief

← All advisories

CVE-2026-129947

High 8.6No known exploitationFix status unknown

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

Record last updated

CVSS score

8.6

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.3%

Higher than 20% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-94

Patching and mitigation

Patch status
Unknown: no source documents a fix
Mitigation
None documented
Vendor guidance
No vendor link on record

Affected products

VendorProductAffected versionsFixed inPer
contentlayerdev@contentlayer/coreall versions up to and including 0.3.4Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by VulnCheck

    Source: CVE Program (opens in a new tab)

Vendor guidance and references