CVE-2022-25863 json
Deserialization of Untrusted Data
published 2022-06-03 4 y ago modified 2026-09-29 41 d ago also GHSA-mj46-r4gr-5x83 , EUVD-2022-6094
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm gatsby-plugin-mdx 2.14.1, 3.15.2
- n/a gatsby-plugin-mdx 2.14.1, 3.15.2
- github.com/gatsbyjs/gatsby#35830 commit
- github.com/gatsbyjs/gatsby#35830 pull request
Exploit prediction
1.99% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gatsbyjs/gatsby/pull/35830 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699 referenced PoC, tagged "exploit" by a source, unverified
- drive.google.com https://drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | gatsby-plugin-mdx | <2.14.1 >=3.0.0, <3.15.2 |
2.14.1 3.15.2 |
Affected products
- n/a gatsby-plugin-mdx
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/gatsbyjs/gatsby/pull/35830
web, exploit, patch, third-party-advisory
-
github.com
/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46e
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699
web, exploit, third-party-advisory
-
drive.google.com
/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/view?usp=sharing
web, exploit, third-party-advisory
-
github.com
/gatsbyjs/gatsby/security/advisories/GHSA-mj46-r4gr-5x83
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-25863
advisory
-
github.com
/gatsbyjs/gatsby
package
Sources
- CVE List CVE-2022-25863
- GitHub Advisory GHSA-mj46-r4gr-5x83
- NVD CVE-2022-25863
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.