Vulnerabilities/

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

Severity:
High

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.

Recommendation

Update the next-mdx-remote package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
next-mdx-remote
Anything's wrong? Let us know Last updated on February 24, 2026