SCA: security update for gatsby-plugin-mdx (GHSA-mj46-r4gr-5x83)

critical Tenable Cloud Security Plugin ID 416990

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2022-25863)

See Also

https://github.com/advisories/GHSA-mj46-r4gr-5x83

Plugin Details

Severity: Critical

ID: 416990

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.12

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2022-25863

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/3/2022

Vulnerability Publication Date: 6/3/2022

Reference Information

CVE: CVE-2022-25863

cwe: CWE-502