Skip to content

Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY] #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 17, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
gatsby-transformer-remark (source) 5.23.0 -> 5.25.1 age adoption passing confidence

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:

---js
((require("child_process")).execSync("id >> /tmp/rce"))
--- 

Patches

A patch has been introduced in [email protected] and [email protected] which mitigates the issue by disabling the gray-matter JavaScript Frontmatter engine. The patch introduces a new option, JSFrontmatterEngine which is set to false by default. When setting JSFrontmatterEngine to true, input passed to gatsby-plugin-mdx must be sanitized before processing to avoid a security risk. Warnings are displayed when enabling JSFrontmatterEngine to true 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].


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


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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@netlify
Copy link

netlify bot commented Mar 17, 2023

Deploy Preview for opensesame-engineering-blog ready!

Name Link
🔨 Latest commit f1b88ac
🔍 Latest deploy log https://app.netlify.com/sites/opensesame-engineering-blog/deploys/660d795a7a89080008f6f874
😎 Deploy Preview https://deploy-preview-62--opensesame-engineering-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot changed the title Update dependency gatsby-transformer-remark to 5.25.1 [SECURITY] Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY] Mar 22, 2023
@renovate renovate bot changed the title Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY] Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY] - autoclosed Apr 3, 2024
@renovate renovate bot closed this Apr 3, 2024
@renovate renovate bot deleted the renovate/npm-gatsby-transformer-remark-vulnerability branch April 3, 2024 13:25
@renovate renovate bot changed the title Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY] - autoclosed Update dependency gatsby-transformer-remark to v5.25.1 [SECURITY] Apr 3, 2024
@renovate renovate bot reopened this Apr 3, 2024
@renovate renovate bot restored the renovate/npm-gatsby-transformer-remark-vulnerability branch April 3, 2024 15:43
@renovate renovate bot force-pushed the renovate/npm-gatsby-transformer-remark-vulnerability branch from 4007c1f to f1b88ac Compare April 3, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants