CVE-2023-22491

MediumCVSS 5.4/10Last modified Sep 29, 2026

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 `gatsby-transformer-remark@5.25.1` and `gatsby-transformer-remark@6.3.2` 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 sanitized ahead of processing. It is encouraged for projects to upgrade to the latest major release branch for all Gatsby plugins to ensure the latest security updates and bug fixes are received in a timely manner.

Metrics

CVSS 3.1 5.4/10CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Jan 13, 2023
Last modified
Sep 29, 2026
NVD status
Analyzed

Related CVEs from 2023

CVE-2023-224925.9ZITADEL is a combination of Auth0 and Keycloak. RefreshTokens is an OAuth 2.0 feature that allows applications to retrieve new access tokensCVE-2023-224937.5RSSHub is an open source RSS feed generator. RSSHub is vulnerable to Server-Side Request Forgery (SSRF) attacks. This vulnerability allows aCVE-2023-224959.8Izanami is a shared configuration service well-suited for micro-service architecture implementation. Attackers can bypass the authenticationCVE-2023-224969.8Netdata is an open source option for real-time infrastructure monitoring and troubleshooting. An attacker with the ability to establish a stCVE-2023-224979.1Netdata is an open source option for real-time infrastructure monitoring and troubleshooting. Each Netdata Agent has an automatically generaCVE-2023-224997.5Deno is a runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Multi-threaded programs were able to spoof interactive peCVE-2023-22506.7A flaw was found in the Open Cluster Management (OCM) when a user have access to the worker nodes which has the cluster-manager-registrationCVE-2023-225007.5GLPI is a Free Asset and IT Management Software package. Versions 10.0.0 and above, prior to 10.0.6 are vulnerable to Incorrect AuthorizatioCVE-2023-225019.1An authentication vulnerability was discovered in Jira Service Management Server and Data Center which allows an attacker to impersonate anoCVE-2023-225035.3Affected versions of Atlassian Confluence Server and Data Center allow anonymous remote attackers to view the names of attachments and labelCVE-2023-225046.5Affected versions of Atlassian Confluence Server allow remote attackers who have read permissions to a page, but not write permissions, to uCVE-2023-225058.8This High severity RCE (Remote Code Execution) vulnerability known as CVE-2023-22505 was introduced in version 8.0.0 of Confluence Data Cent
CVE-2023-22491: Medium severity, CVSS 5.4 | Vulnix