{"api_version":"1","generated_at":"2026-07-23T14:40:57+00:00","cve":"CVE-2022-25863","urls":{"html":"https://cve.report/CVE-2022-25863","api":"https://cve.report/api/cve/CVE-2022-25863.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25863","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25863"},"summary":{"title":"CVE-2022-25863","description":"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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-06-10 20:15:00","updated_at":"2022-06-17 18:40:00"},"problem_types":["CWE-502"],"metrics":[],"references":[{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","name":"N/A","refsource":"CONFIRM","tags":[],"title":"fix(gatsby-plugin-mdx): don't allow JS frontmatter by default by pieh · Pull Request #35830 · gatsbyjs/gatsby · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","name":"N/A","refsource":"CONFIRM","tags":[],"title":"fix(gatsby-plugin-mdx): don't allow JS frontmatter by default by pieh · Pull Request #35830 · gatsbyjs/gatsby · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","name":"N/A","refsource":"CONFIRM","tags":[],"title":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","mime":"text/html","httpstatus":"429","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Deserialization of Untrusted Data in gatsby-plugin-mdx | CVE-2022-25863 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25863","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25863","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Feng Xiao and Zhongfu Su","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25863","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gatsbyjs","cpe5":"gatsby","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-06-10T20:00:07.103333Z","ID":"CVE-2022-25863","STATE":"PUBLIC","TITLE":"Deserialization of Untrusted Data"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"gatsby-plugin-mdx","version":{"version_data":[{"version_affected":"<","version_value":"2.14.1"},{"version_affected":">=","version_value":"3.0.0"},{"version_affected":"<","version_value":"3.15.2"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Deserialization of Untrusted Data"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","name":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699"},{"refsource":"MISC","url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","name":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing"},{"refsource":"MISC","url":"https://github.com/gatsbyjs/gatsby/pull/35830","name":"https://github.com/gatsbyjs/gatsby/pull/35830"},{"refsource":"MISC","url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","name":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"}},"credit":[{"lang":"eng","value":"Feng Xiao and Zhongfu Su"}]},"nvd":{"publishedDate":"2022-06-10 20:15:00","lastModifiedDate":"2022-06-17 18:40:00","problem_types":["CWE-502"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gatsbyjs:gatsby:*:*:*:*:*:node.js:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.15.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gatsbyjs:gatsby:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.14.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}