GitHub Advisoryadvisory · npm

GHSA-g4xw-jxrg-5f6m next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content

HIGH Published 2026-02-12 Modified 2026-02-24 Official page ↗
Aliases
CVE-2026-0969
Ecosystem
npm
Packages
next-mdx-remote
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2026-02-24

Affected packages

• npm next-mdx-remote: >= 4.3.0, < 6.0.0 → fixed in 6.0.0

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.

Related

Alias · CVE (1)

  • CVE-2026-0969 The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of… vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References