{"id":"CVE-2022-25863","state":"PUBLISHED","title":"Deserialization of Untrusted Data","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.","publishedAt":"2022-06-10T20:00:19.275Z","updatedAt":"2024-09-17T00:31:34.621Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","source":"snyk"},"assigner":"snyk","products":["n/a gatsby-plugin-mdx"],"affected":[{"vendor":"n/a","product":"gatsby-plugin-mdx","versions":[{"version":"unspecified","status":"affected","lessThan":"2.14.1","versionType":"custom"},{"version":"3.0.0","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThan":"3.15.2","versionType":"custom"}]}],"references":["https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","https://github.com/gatsbyjs/gatsby/pull/35830","https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:46.971Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/25xxx/CVE-2022-25863.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-25863","state":"PUBLISHED","datePublished":"2022-06-10T20:00:19.275Z","dateUpdated":"2024-09-17T00:31:34.621Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2022-02-24T00:00:00.000Z"},"containers":{"cna":{"title":"Deserialization of Untrusted Data","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"n/a","product":"gatsby-plugin-mdx","versions":[{"version":"unspecified","status":"affected","lessThan":"2.14.1","versionType":"custom"},{"version":"3.0.0","status":"affected","lessThan":"unspecified","versionType":"custom"},{"version":"unspecified","status":"affected","lessThan":"3.15.2","versionType":"custom"}]}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","tags":["x_refsource_MISC"]},{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","tags":["x_refsource_MISC"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","tags":["x_refsource_MISC"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","exploitCodeMaturity":"PROOF_OF_CONCEPT","integrityImpact":"HIGH","privilegesRequired":"LOW","remediationLevel":"NOT_DEFINED","reportConfidence":"NOT_DEFINED","scope":"UNCHANGED","temporalScore":7.7,"temporalSeverity":"HIGH","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Deserialization of Untrusted Data","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"snyk","dateUpdated":"2022-06-10T20:00:19.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730"},"credits":[{"lang":"en","value":"Feng Xiao and Zhongfu Su"}],"datePublic":"2022-06-10T00:00:00.000Z","x_legacyV4Record":{"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"}]}},"credit":[{"lang":"eng","value":"Feng Xiao and Zhongfu Su"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","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":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Deserialization of Untrusted Data"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699"},{"name":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","refsource":"MISC","url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing"},{"name":"https://github.com/gatsbyjs/gatsby/pull/35830","refsource":"MISC","url":"https://github.com/gatsbyjs/gatsby/pull/35830"},{"name":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","refsource":"MISC","url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T04:49:44.144Z"}}]}}}