CVE-2026-129947
Received Received - Intake

BaseFortify

Vulnerability report for CVE-2026-129947, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
contentlayerdev @contentlayer/core From 0 (inc) to 0.3.4 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a code injection flaw in Contentlayer @contentlayer/core through version 0.3.4. Attackers can exploit it by naming a content file with single quotes that break out of the import specifier in makeDataExportFile(). This allows injected JavaScript code to execute when the contentlayer dev or Next.js dev server imports the generated module.

Detection Guidance

Check for content files with names containing single quotes or unusual characters that could break out of import specifiers. Review generated modules for unexpected JavaScript execution during contentlayer dev or Next.js dev server imports.

Impact Analysis

If exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code in your environment. This could lead to data theft, unauthorized actions, or further compromise of your system, depending on the permissions of the running process.

Mitigation Strategies

Update Contentlayer to a version beyond 0.3.4. Avoid using untrusted content file names. Implement input validation for file names. Monitor for suspicious module imports or JavaScript execution during development.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129947. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...