CVE-2026-129947

Source
https://cve.org/CVERecord?id=CVE-2026-129947
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129947.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-129947
Published
2026-11-16T15:06:10Z
Modified
2026-11-18T16:45:25Z
Severity
  • 8.6 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Contentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-94"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129947.json"
}
References

Affected packages

Git / github.com/contentlayerdev/contentlayer

Affected ranges

Type
GIT
Repo
https://github.com/contentlayerdev/contentlayer
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "0.3.4"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "0.3.4"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

v0.*
v0.0.27
v0.0.28
v0.0.30
v0.0.31
v0.0.32
v0.0.33
v0.0.34
v0.1.0
v0.1.1
v0.1.2
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129947.json"