Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY]#62
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY]#62renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
✅ Deploy Preview for opensesame-engineering-blog ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4007c1f to
f1b88ac
Compare
f1b88ac to
58bf7a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.23.0→5.25.1GitHub 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-matternpm 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
gatsby-transformer-remark@5.25.1andgatsby-transformer-remark@6.3.2which mitigates the issue by disabling thegray-matterJavaScript Frontmatter engine. The patch introduces a new option,JSFrontmatterEnginewhich is set tofalseby default. When settingJSFrontmatterEnginetotrue, input passed togatsby-plugin-mdxmust be sanitized before processing to avoid a security risk. Warnings are displayed when enablingJSFrontmatterEnginetotrueor if it appears that the MarkdownRemark input is attempting to use the Frontmatter engine.Workarounds
If an older version of
gatsby-transformer-remarkmust 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 security@gatsbyjs.com.
Release Notes
gatsbyjs/gatsby (gatsby-transformer-remark)
v5.25.1Compare Source
v5.25.0Compare Source
v5.24.0Compare 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.1Compare 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
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.