Advisory

GHSA-g4xw-jxrg-5f6m

Also known as: CVE-2026-0969

Summary

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

Details

The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-12 03:31 UTC
Modified
2026-02-24 16:26 UTC

Affected packages and fixes

next-mdx-remote

npm · All systems

Affected

  • introduced 4.3.0, fixed 6.0.0 (semver)

Fixed versions

6.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences