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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
gatsby-plugin-mdxnpm | < 2.14.1 | 2.14.1 |
gatsby-plugin-mdxnpm | >= 3.0.0, < 3.15.2 | 3.15.2 |
Affected products
2- gatsby-plugin-mdx/gatsby-plugin-mdxdescription
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-mj46-r4gr-5x83ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-25863ghsaADVISORY
- drive.google.com/file/d/1EoCzbwTWOM8-fjvwMbH3bqcZ2iKksxTW/viewghsax_refsource_MISCWEB
- github.com/gatsbyjs/gatsby/pull/35830ghsax_refsource_MISCWEB
- github.com/gatsbyjs/gatsby/pull/35830/commits/f214eb0694c61e348b2751cecd1aace2046bc46eghsax_refsource_MISCWEB
- github.com/gatsbyjs/gatsby/security/advisories/GHSA-mj46-r4gr-5x83ghsaWEB
- snyk.io/vuln/SNYK-JS-GATSBYPLUGINMDX-2405699ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.