CVE-2022-25863

Deserialization of Untrusted Data

Published Jun 10, 2022 CVSS 3.1 · 8.1 High EPSS 2.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6094 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.
Github GHSA Github GHSA GHSA-mj46-r4gr-5x83 Unsanitized JavaScript code injection possible in gatsby-plugin-mdx
History
Type Values Removed Values Added
First Time appeared Gatsbyjs gatsby-plugin-mdx
CPEs cpe:2.3:a:gatsbyjs:gatsby:*:*:*:*:*:node.js:*:* cpe:2.3:a:gatsbyjs:gatsby-plugin-mdx:*:*:*:*:*:node.js:*:*
Vendors & Products Gatsbyjs gatsby
Gatsbyjs gatsby-plugin-mdx
Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 17, 2024, 12:31 AM
Reserved
Feb 24, 2022, 12:00 AM
Status
Analyzed
Published
Jun 10, 2022, 8:15 PM
Modified
Sep 29, 2026, 3:50 PM