Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

fix(deps): update dependency gatsby-plugin-mdx to v2.14.1 [security] #265

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 16, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
gatsby-plugin-mdx (source) 2.14.0 -> 2.14.1 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2022-25863

Impact

The gatsby-plugin-mdx plugin prior to versions 3.15.2 and 2.14.1 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 when passing input in both webpack (MDX files in src/pages or MDX file imported as component in frontend / React code) and data mode (querying MDX 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 or added into an MDX file. The following MDX payload demonstrates a vulnerable configuration:

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

Patches

A patch has been introduced in gatsby-plugin-mdx@3.15.2 and gatsby-plugin-mdx@2.14.1 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 MDX input is attempting to use the Frontmatter engine.

Workarounds

If an older version of gatsby-plugin-mdx 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.

Credits

We would like to thank Snyk [snyk.io] for initially bringing the issue to our attention, as well as Feng Xiao and Zhongfu Su, who reported the issue to Snyk.

For more information

Email us at security@gatsbyjs.com.


Release Notes

gatsbyjs/gatsby

v2.14.1

Compare Source


Configuration

📅 Schedule: Branch creation - "" in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 has been generated by Mend Renovate. View repository job log here.

@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 16, 2022 20:33 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 744cfda to e7f96fa Compare June 16, 2022 23:38
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 16, 2022 23:42 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from e7f96fa to e98f8ee Compare June 17, 2022 02:43
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 17, 2022 02:49 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from e98f8ee to 80d4d3e Compare June 17, 2022 21:00
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 17, 2022 21:05 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 80d4d3e to f71c4ca Compare June 18, 2022 00:05
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 18, 2022 00:10 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from f71c4ca to 15e72d9 Compare June 20, 2022 12:50
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 20, 2022 12:55 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 15e72d9 to b12ec58 Compare June 20, 2022 18:43
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 20, 2022 18:47 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch 2 times, most recently from 06ad60e to e11c851 Compare June 21, 2022 00:53
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 21, 2022 00:57 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from e11c851 to 97cb9b3 Compare June 21, 2022 03:54
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 21, 2022 03:59 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 97cb9b3 to f5dd120 Compare June 21, 2022 06:08
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 21, 2022 06:13 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from f5dd120 to 3b45371 Compare June 21, 2022 12:14
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 21, 2022 12:18 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 3b45371 to d395fcf Compare June 21, 2022 19:29
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 21, 2022 19:34 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from d395fcf to f7e90a9 Compare June 22, 2022 02:17
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 22, 2022 02:21 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from f7e90a9 to 99d2023 Compare June 22, 2022 15:05
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg June 22, 2022 15:12 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 99d2023 to cdf4e29 Compare June 22, 2022 23:14
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 14, 2022 04:43 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 72f71d0 to 873f083 Compare August 14, 2022 21:23
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 14, 2022 21:28 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 873f083 to 5b5a096 Compare August 15, 2022 13:21
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 15, 2022 13:26 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 5b5a096 to 364fac9 Compare August 15, 2022 20:14
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 15, 2022 20:22 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 364fac9 to 6cf8627 Compare August 15, 2022 23:27
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 15, 2022 23:34 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 6cf8627 to be9b5c0 Compare August 16, 2022 02:12
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 16, 2022 02:16 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from be9b5c0 to cd01977 Compare August 16, 2022 10:07
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 16, 2022 10:12 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from cd01977 to 5775ed4 Compare August 16, 2022 15:35
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 16, 2022 15:40 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 5775ed4 to 3283de1 Compare August 16, 2022 18:30
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg August 16, 2022 18:35 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 3283de1 to 4db3f37 Compare September 25, 2022 13:23
@github-actions github-actions bot temporarily deployed to archifiltre-site-renovate-npm-gatsby-plugin-m-68stdg September 25, 2022 13:29 Inactive
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-mdx-vulnerability branch from 4db3f37 to 20f62fc Compare November 20, 2022 14:17
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions
Copy link

@Alezco Alezco merged commit 5fa2205 into master Jan 17, 2023
@Alezco Alezco deleted the renovate/npm-gatsby-plugin-mdx-vulnerability branch January 17, 2023 09:52
SocialGroovyBot pushed a commit that referenced this pull request Jan 17, 2023
## [2.0.7](v2.0.6...v2.0.7) (2023-01-17)

### Bug Fixes

* **deps:** update dependency gatsby-plugin-mdx to v2.14.1 [security] ([#265](#265)) ([5fa2205](5fa2205))
@SocialGroovyBot
Copy link
Member

🎉 This PR is included in version 2.0.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants