{"id":"CVE-2022-25863","title":"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…","summary":"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…","severity":"high","cvss":8.1,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-502"],"vendor":"gatsbyjs","product":"gatsby-plugin-mdx","affected":["gatsby-plugin-mdx < 2.14.1","gatsby-plugin-mdx >= 3.0.0, < 3.15.2"],"patched":["gatsby-plugin-mdx 3.15.2"],"published":"2022-06-10","updated":"2026-09-29","sourceUpdated":"2026-09-29T15:50:31.907","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-25863","references":[{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","label":"report@snyk.io"},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","label":"report@snyk.io"},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","label":"report@snyk.io"},{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","label":"report@snyk.io"},{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","label":"af854a3a-2127-422b-91ae-364da2661108"}],"tags":["nvd"],"epss":0.01962,"epssPercentile":0.79542,"ingestedAt":"2026-09-29T16:39:33.221Z","slug":"CVE-2022-25863","body":"## Overview\n\nThe 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.\n\n## Affected\n\n- `gatsby-plugin-mdx < 2.14.1`\n- `gatsby-plugin-mdx >= 3.0.0, < 3.15.2`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `gatsby-plugin-mdx 3.15.2`","depth":"twilight","depthScore":45,"depthScoreParts":{"impact":44.6,"likelihood":0.4,"exploitation":0,"ransomware":0},"changes":[]}