This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
fix(deps): update dependency gatsby-transformer-remark to v5.25.1 [security] #933
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.4.0
->5.25.1
GitHub Vulnerability Alerts
CVE-2023-22491
Impact
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. The following payload demonstrates a vulnerable configuration:
Patches
A patch has been introduced in
[email protected]
and[email protected]
which mitigates the issue by disabling thegray-matter
JavaScript Frontmatter engine. The patch introduces a new option,JSFrontmatterEngine
which is set tofalse
by default. When settingJSFrontmatterEngine
totrue
, input passed togatsby-plugin-mdx
must be sanitized before processing to avoid a security risk. Warnings are displayed when enablingJSFrontmatterEngine
totrue
or if it appears that the MarkdownRemark input is attempting to use the Frontmatter engine.Workarounds
If an older version of
gatsby-transformer-remark
must be used, input passed into the plugin should be sanitized ahead of processing.We encourage 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.
For more information
Email us at [email protected].
gatsby-transformer-remark has possible unsanitized JavaScript code injection
CVE-2023-22491 / GHSA-7ch4-rr99-cqcw
More information
Details
Impact
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. The following payload demonstrates a vulnerable configuration:
Patches
A patch has been introduced in
[email protected]
and[email protected]
which mitigates the issue by disabling thegray-matter
JavaScript Frontmatter engine. The patch introduces a new option,JSFrontmatterEngine
which is set tofalse
by default. When settingJSFrontmatterEngine
totrue
, input passed togatsby-plugin-mdx
must be sanitized before processing to avoid a security risk. Warnings are displayed when enablingJSFrontmatterEngine
totrue
or if it appears that the MarkdownRemark input is attempting to use the Frontmatter engine.Workarounds
If an older version of
gatsby-transformer-remark
must be used, input passed into the plugin should be sanitized ahead of processing.We encourage 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.
For more information
Email us at [email protected].
Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
gatsbyjs/gatsby (gatsby-transformer-remark)
v5.25.1
Compare Source
v5.25.0
Compare Source
v5.24.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.23.1 (2022-09-22)
Note: Version bump only for package gatsby-transformer-remark
v5.23.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.23.0
Compare Source
🧾 Release notes
Chores
v5.22.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.21.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.20.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.19.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.18.1 (2022-07-12)
Note: Version bump only for package gatsby-transformer-remark
v5.18.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.18.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.17.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.16.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.15.1 (2022-06-01)
Note: Version bump only for package gatsby-transformer-remark
v5.15.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.15.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.14.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.13.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.12.1 (2022-04-13)
Note: Version bump only for package gatsby-transformer-remark
v5.12.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.12.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.11.1 (2022-03-31)
Note: Version bump only for package gatsby-transformer-remark
v5.11.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.11.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.10.2 (2022-03-23)
Note: Version bump only for package gatsby-transformer-remark
5.10.1 (2022-03-18)
Note: Version bump only for package gatsby-transformer-remark
v5.10.2
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.10.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.10.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
5.9.1 (2022-03-09)
Note: Version bump only for package gatsby-transformer-remark
v5.9.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.9.0
Compare Source
🧾 Release notes
Chores
5.8.2 (2022-03-01)
Note: Version bump only for package gatsby-transformer-remark
5.8.1 (2022-02-25)
Note: Version bump only for package gatsby-transformer-remark
v5.8.2
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.8.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.8.0
Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-transformer-remark
v5.7.0
Compare Source
🧾 Release notes
Bug Fixes
v5.6.0
Compare Source
🧾 Release notes
Bug Fixes
5.5.2 (2022-01-17)
Note: Version bump only for package gatsby-transformer-remark
5.5.1 (2022-01-12)
Note: Version bump only for package gatsby-transformer-remark
v5.5.2
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.5.1
Compare Source
Note: Version bump only for package gatsby-transformer-remark
v5.5.0
Compare Source
🧾 Release notes
Chores
Configuration
📅 Schedule: Branch creation - "" in timezone Etc/UTC, Automerge - "after 8am and before 4pm on tuesday" in timezone Etc/UTC.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.