{"id":"CVE-2022-25863","published":"2022-06-10T20:00:19Z","modified":"2024-09-17T00:31:34Z","title":"Deserialization of Untrusted Data","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01858,"percentile":0.79727,"provenance":"source"},"cwes":[],"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"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":15.95},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"gatsby-plugin-mdx","versions":[">= unspecified, < 2.14.1",">= 3.0.0, < unspecified",">= unspecified, < 3.15.2"]}],"affected":[{"ecosystem":"npm","package":"gatsby-plugin-mdx","vulnerableRanges":["<2.14.1",">=3.0.0, <3.15.2"],"patched":["2.14.1","3.15.2"],"from":["GHSA-mj46-r4gr-5x83"],"provenance":"source"}],"summary":{"text":"The deserialization flaw affects the gatsby-plugin-mdx package, specifically versions before 2.14.1 and from 3.0.0 before 3.15.2, where untrusted input is passed through to the gray-matter package without sanitization because of its default configuration. An attacker with low-privileged access can exploit it by supplying crafted input through the webpack path (MDX files in src/pages or MDX files imported as components) or through the data path (querying MDX nodes via GraphQL), with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:54:33Z"},"euvd":{"id":"EUVD-2022-6094","exploited":false,"provenance":"source"}}