{"id":"CVE-2022-25863","revision":"e4159e7bd6bb42ca8faa924b8a3773c6","records":[{"revision":"e4159e7bd6bb42ca8faa924b8a3773c6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-25863","aliases":[],"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.","state":0,"publishedAt":"2022-06-10T20:00:19.275+00:00","modifiedAt":"2024-09-17T00:31:34.621+00:00","affected":[{"ecosystem":"Vendor product","name":"gatsby-plugin-mdx","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"gatsby-plugin-mdx\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"2.14.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"unspecified\",\n                            \"versionType\": \"custom\"\n                        },\n                        {\n                            \"lessThan\": \"unspecified\",\n                            \"status\": \"affected\",\n                            \"version\": \"3.0.0\",\n                            \"versionType\": \"custom\"\n                        },\n                        {\n                            \"lessThan\": \"3.15.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"unspecified\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","score":8.1,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-25863","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-25863","identifiers":["CVE-2022-25863"]},"retained":false,"historicalAffected":[]}],"coverage":[]}