Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next-mdx-remote
  4. ›
  5. CVE-2026-0969

CVE-2026-0969: next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content

February 12, 2026 (updated February 24, 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.

References

  • discuss.hashicorp.com/t/hcsec-2026-01-arbitrary-code-execution-in-react-server-side-rendering-of-untrusted-mdx-content/77155
  • github.com/advisories/GHSA-g4xw-jxrg-5f6m
  • github.com/hashicorp/next-mdx-remote
  • github.com/hashicorp/next-mdx-remote/commit/4d527fdcaed911b87f427d0b4d3c711e817fa4b3
  • github.com/hashicorp/next-mdx-remote/releases/tag/v6.0.0
  • nvd.nist.gov/vuln/detail/CVE-2026-0969

Code Behaviors & Features

Detect and mitigate CVE-2026-0969 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.3.0 before 6.0.0

Fixed versions

  • 6.0.0

Solution

Upgrade to version 6.0.0 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/next-mdx-remote/CVE-2026-0969.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.