{"id":"CVE-2026-0969","aliases":["EUVD-2026-7026","GHSA-g4xw-jxrg-5f6m"],"status":"published","title":"Arbitrary code execution in React server-side rendering of untrusted MDX content","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00638,"percentile":0.50887,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2026-02-12T01:35:06Z","modified":"2026-10-28T02:30:43Z","fixes":[{"ecosystem":"npm","package":"next-mdx-remote","fixed_in":["6.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"next-mdx-remote","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"fixed":"6.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"next-mdx-remote","ranges":[{"type":"SEMVER","events":[{"introduced":"4.3.0"},{"fixed":"6.0.0"}]}]}],"products":[{"vendor":"hashicorp","product":"shared library"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2026-01-arbitrary-code-execution-in-react-server-side-rendering-of-untrusted-mdx-content/77155","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0969","tags":["advisory"]},{"url":"https://github.com/hashicorp/next-mdx-remote/commit/4d527fdcaed911b87f427d0b4d3c711e817fa4b3","tags":["web"]},{"url":"https://github.com/hashicorp/next-mdx-remote/releases/tag/v6.0.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g4xw-jxrg-5f6m"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0969.json","tags":["advisory"]},{"url":"https://github.com/hashicorp/next-mdx-remote","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-0969","title":"Arbitrary code execution in React server-side rendering of untrusted MDX content","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.","status":"published","published":"2026-02-12T01:35:06.231Z","modified":"2026-04-17T17:57:55.801Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:20:13.962274Z"}],"euvd":[{"id":"EUVD-2026-7026","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.","status":"published","published":"2026-02-12T01:35:06Z","modified":"2026-04-17T17:57:55Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T19:24:23.330761Z"}],"ghsa":[{"id":"GHSA-g4xw-jxrg-5f6m","title":"next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content","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.","status":"published","published":"2026-02-12T03:31:01Z","modified":"2026-02-24T14:20:58Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:39:26.881079Z"}],"nvd":[{"id":"CVE-2026-0969","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.","status":"published","published":"2026-02-12T03:15:46.667Z","modified":"2026-06-17T10:11:42.677Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:12:05.908608Z"}],"osv":[{"id":"CVE-2026-0969","title":"Arbitrary code execution in React server-side rendering of untrusted MDX content","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.","status":"published","published":"2026-02-12T01:35:06.231Z","modified":"2026-10-28T02:30:43.404640763Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:53.490346Z"},{"id":"GHSA-g4xw-jxrg-5f6m","title":"next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content","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.","status":"published","published":"2026-02-12T03:31:01Z","modified":"2026-02-24T16:26:22.10799Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:47.119724Z"}]}}
