{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-25863","published":"2022-06-10T20:15:08.227000Z","last_modified":"2026-09-29T15:50:31.907000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-502"],"cpes":[{"criteria":"cpe:2.3:a:gatsbyjs:gatsby-plugin-mdx:*:*:*:*:*:node.js:*:*","part":"a","vendor":"gatsbyjs","product":"gatsby-plugin-mdx","version_end_excluding":"2.14.1"},{"criteria":"cpe:2.3:a:gatsbyjs:gatsby-plugin-mdx:*:*:*:*:*:node.js:*:*","part":"a","vendor":"gatsbyjs","product":"gatsby-plugin-mdx","version_start_including":"3.0.0","version_end_excluding":"3.15.2"}],"cpes_truncated":false,"vendors":["gatsbyjs"],"products":["gatsbyjs/gatsby-plugin-mdx"],"epss":{"score":0.01858,"percentile":0.79772,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mj46-r4gr-5x83","ecosystem":"npm","name":"gatsby-plugin-mdx","purl":"pkg:npm/gatsby-plugin-mdx","ranges":[{"introduced":"0","fixed":"2.14.1"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-mj46-r4gr-5x83","ecosystem":"npm","name":"gatsby-plugin-mdx","purl":"pkg:npm/gatsby-plugin-mdx","ranges":[{"introduced":"3.0.0","fixed":"3.15.2"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-25863/","html_en":"/en/cve/CVE-2022-25863/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25863","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25863"},"untrusted":{"vendor_name":"Gatsbyjs","product_name":"Gatsby-plugin-mdx","desc_en":"The package gatsby-plugin-mdx before 2.14.1, from 3.0.0 and before 3.15.2 are vulnerable to Deserialization of Untrusted Data when passing input through to the gray-matter package, due to its default configurations that are missing input sanitization. Exploiting this vulnerability is possible when passing input in both webpack (MDX files in src/pages or MDX file imported as a component in frontend / React code) and data mode (querying MDX nodes via GraphQL). Workaround: If an older version of gatsby-plugin-mdx must be used, input passed into the plugin should be sanitized ahead of processing.","affected":[],"references":[{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","tags":["Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","tags":["Exploit","Third Party Advisory"]}]}}