Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-22491

8.1 · HIGH
Published Jan 13, 2023 gatsbyjs CWE-20 EPSS 0.61% (47th pctl)

Overview

CVE-2023-22491 is a high-severity vulnerability affecting gatsbyjs gatsby. It was published on January 13, 2023 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

Gatsby is a free and open source framework based on React that helps developers build websites and apps. The gatsby-transformer-remark plugin prior to versions 5.25.1 and 6.3.2 passes input through to the `gray-matter` npm package, which is vulnerable to JavaScript injection in its default configuration, unless input is sanitized. The vulnerability is present in gatsby-transformer-remark when passing input in data mode (querying MarkdownRemark nodes via GraphQL). Injected JavaScript executes in the context of the build server. To exploit this vulnerability untrusted/unsanitized input would need to be sourced by or added into a file processed by gatsby-transformer-remark. A patch has been introduced in `[email protected]` and `[email protected]` which mitigates the issue by disabling the `gray-matter` JavaScript Frontmatter engine. As a workaround, if an older version of `gatsby-transformer-remark` must be used, input passed into the plugin should be sanit

Remediation

Check the references section for vendor advisories and patches from gatsbyjs. Update gatsby to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
gatsbyjs gatsby >= 0, < 5.25.1 Affected

Frequently Asked Questions

What is CVE-2023-22491?

CVE-2023-22491 is a high-severity vulnerability affecting gatsbyjs gatsby. It was published on January 13, 2023 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2023-22491?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2023-22491?

Check the references section for vendor advisories and patches from gatsbyjs. Update gatsby to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-22491?

CyberStrike's AI-powered security agents can automatically detect CVE-2023-22491 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.