CVE-2022-25863 The gatsby-plugin-mdx package from 3.0.0 and 3.15.2 is vulnerable to Deserialization of Untrusted Data due to default configurations that are missing input sanitization.

CVE-2022-25863 The gatsby-plugin-mdx package from 3.0.0 and 3.15.2 is vulnerable to Deserialization of Untrusted Data due to default configurations that are missing input sanitization.

Previously, it was possible to trigger a Denial of Service (DoS) in the plugin via a specially crafted MDX file, by passing a large number of nodes through its GraphQL interface. Fixed in version v2.14.1. Impact: An attacker could upload a malicious MDX file to the plugin and send it to the server to be used as a component in frontend / React code. An attacker could also send a large number of MDX nodes in GraphQL. Fixed in version v3.15.2. Solution: Upgrade to gatsby-plugin-mdx v3.15.2 or later. - or - If MDX is used in webpack (SRCS, PAGES), it must be sanitized in advance, or a DoS could be triggered. Note that in this case, it is impossible to exploit a vulnerability in the plugin.

The remainder of this report is organized as follows:

The remainder of this report is organized as follows:
1. Introduction
2. Description of the vulnerability
3. Impact
4. Solution
5. Resolution

Gatsby Core v2.14.1

Fixed in version v2.14.1:
* Fixed CVE-2022-25863 - An attacker could upload a malicious MDX file to the plugin and send it to the server to be used as a component in frontend / React code, as well as sending a large number of MDX nodes in GraphQL.
* Fixed CVE-2022-26992 - The GraphQL field names were printed using the __NAMESPACE__ property which allows arbitrary access to fields from the context of the surrounding object (in this case, from any component).
* Fixed CVE-2022-26993 - Allowed remote attackers to inject new scripts into webpack build pipeline by setting an invalid configuration for webpack's WebAssembly module loader or via other means, leading to Denial of Service (DoS) attacks against Gatsby components.

Scrivener

Scrivener is a powerful writing tool for writers who need a place to collect, organize, and manage their work. It provides helpful tools to help writers plan the structure of their manuscript, set up timelines, write dialogue and notes, and more. Scrivener is available as both an on-premise software application and a cloud-based service that allows users to create documents on any device or platform.

References

Subscribe to CVE.news
Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe