CVE-2022-25863
published high CVSS 3.1 · 8.1Deserialization of Untrusted Data
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | gatsby-plugin-mdxunspecified to < 2.14.1 · 3.0.0 to < unspecified · unspecified to < 3.15.2 | Affected | Not stated | snyk |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | gatsby-plugin-mdx | unspecified to < 2.14.1 (affected · custom)3.0.0 to < unspecified (affected · custom)unspecified to < 3.15.2 (affected · custom) | snyk · cna |
Weaknesses
1- Deserialization of Untrusted Data
References
4Provider assertions
2snyk · cna
Deserialization of Untrusted Data
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 15c68c9078386e290e218d15daae8d00b1f24898178f37c1f650c41a0f79fe57
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record