CVE-2026-0969 PUBLISHED

Arbitrary code execution in React server-side rendering of untrusted MDX content

Assigner: HashiCorp
Reserved: 14.01.2026 Published: 12.02.2026 Updated: 12.02.2026

The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content. This vulnerability, CVE-2026-0969, is fixed in next-mdx-remote 6.0.0.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.8

Product Status

Vendor HashiCorp
Product Shared library
Versions Default: unaffected
  • affected from 4.3.0 to 6.0.0 (excl.)

References

Problem Types

  • CWE-94: Improper Control of Generation of Code (Code Injection) CWE

Impacts

  • CAPEC-242: Code Injection