CVE-2026-0969 Details
Description
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.
A vulnerability allowing arbitrary code execution has been identified in the next-mdx-remote library, specifically in versions 4.3.0 prior to 5.0.0. The issue arises in the serialize function used to compile MDX, where insufficient sanitization of MDX content allows untrusted user inputs with JavaScript expressions to be executed. This vulnerability is particularly concerning in React applications that render MDX content from untrusted sources on the server side.
Users of next-mdx-remote should upgrade to version 6.0.0, which addresses this vulnerability by disabling JavaScript expressions in MDX content by default. For deployments that require JavaScript expressions, the new 'blockDangerousJS' option can be used to mitigate the risk.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 12, 2026CISA-ADP
Assessed Feb 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://discuss.hashicorp.com/t/hcsec-2026-01-arbitrary-code-execution-in-react-server-side-rendering-of-untrusted-mdx-content/77155 | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| HashiCorp next-mdx-remote | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 12, 2026 | CVE Modified | [email protected] |
| Feb 12, 2026 | New CVE Received | [email protected] |
Volerion