Skip to content
Code Injection Vulnerabilities Found in Contentlayer Versions Up to 0.3.4

Code Injection Vulnerabilities Found in Contentlayer Versions Up to 0.3.4

First seen 16 Nov 2026, 16:14 UTC •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 16, 2026 at 16:15 UTC
  • •Two critical vulnerabilities found in Contentlayer packages up to version 0.3.4.
  • •Vulnerabilities allow code injection via JavaScript frontmatter and generated _index.mjs.
  • •Users are urged to upgrade to the latest versions to mitigate risks.

Two code injection vulnerabilities have been identified in Contentlayer versions up to 0.3.4. The first vulnerability affects the @contentlayer/source-files package, allowing code injection via JavaScript frontmatter (CWE-95). The second vulnerability impacts the @contentlayer/core package, enabling code injection through the generated _index.mjs file (CWE-94).

Both vulnerabilities could allow attackers to execute arbitrary code. Users of these packages are advised to upgrade to the latest versions immediately. No has been reported at this time.

The vulnerabilities were disclosed on November 16, 2026, coinciding with the publication of advisories.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini
Updated 14d ago How this analysis works

Timeline

2026-11-16
Vulnerabilities disclosed
Contentlayer announced critical code injection vulnerabilities in @contentlayer/source-files and @contentlayer/core up to version 0.3.4.
VulnCheck
2026-11-16
Advisories published
Advisories for both vulnerabilities were published on the same day, urging users to update to secure versions.
VulnCheck

More articles in this cluster (2)

Common questions

What versions are affected?
The vulnerabilities affect Contentlayer packages @contentlayer/source-files and @contentlayer/core versions up to 0.3.4.
What should I do to protect my systems?
Upgrade to the latest versions of the affected packages to mitigate the vulnerabilities.
Is there any evidence of active exploitation?
No active exploitation has been reported at this time for these vulnerabilities.