CVE-2022-25863CWE-502insecure-deserialization

CVE-2022-25863

High · published June 11, 2022

CVSS v3.1
8.1
EPSS
2%
Percentile
80.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01962 · 80.2th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2022-06-11T00:15Z
Affected products (2)
ProductVersionsFixed in
gatsbyjs/gatsby-plugin-mdx< 2.14.12.14.1
gatsbyjs/gatsby-plugin-mdx≥ 3.0.0, < 3.15.23.15.2
References (8)
EPSS history
Timeline
  • 10 JUN 20:00Z
    Deserialization of Untrusted Data
    cvelistv5