{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-25863","id":"CVE-2022-25863","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","descriptionLong":"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.","published":"2022-06-10T20:00:19.275Z","updated":"2026-10-28T02:30:40.415785107Z","reserved":"2022-02-24T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","rating":"high","source":"snyk"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":["gatsby-plugin-mdx"],"affectedProducts":[{"vendor":"n/a","product":"gatsby-plugin-mdx","defaultStatus":null,"versions":[{"lessThan":"2.14.1","status":"affected","version":"unspecified","versionType":"custom"},{"lessThan":"unspecified","status":"affected","version":"3.0.0","versionType":"custom"},{"lessThan":"3.15.2","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"gatsby-plugin-mdx","purl":"pkg:npm/gatsby-plugin-mdx","ranges":["<2.14.1",">=3.0.0 <3.15.2"],"fixed":["2.14.1","3.15.2"],"advisory":"GHSA-mj46-r4gr-5x83"}],"cwes":["CWE-502"],"aliases":["GHSA-mj46-r4gr-5x83","SNYK-JS-GATSBYPLUGINMDX-2405699"],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25863.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25863","tags":["advisory"]},{"url":"https://github.com/gatsbyjs/gatsby/security/advisories/GHSA-mj46-r4gr-5x83","tags":["web"]},{"url":"https://github.com/gatsbyjs/gatsby","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01992,"epssPercentile":0.81112,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-25863","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25863","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-25863","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mj46-r4gr-5x83","ok":true,"note":"GHSA-mj46-r4gr-5x83"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-25863","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}