astroturf
astroturf copied to clipboard
chore(deps): update dependency gatsby-plugin-mdx to v2 [security]
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
gatsby-plugin-mdx (source) | ^1.2.5 -> ^2.0.0 |
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 [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 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 [email protected].
Release Notes
gatsbyjs/gatsby
v2.14.1
v2.14.0
Bug Fixes
Chores
- update babel monorepo #โ32996 (048c7a7)
- update fs-extra (major) #โ32654 (eea2687)
- add missing
@babel/runtime
dependencies #โ32954 (401b358)
v2.13.0
Chores
v2.12.0
Chores
v2.11.0
Bug Fixes
2.10.1 (2021-07-26)
Bug Fixes
v2.10.1
Bug Fixes
v2.10.0
Chores
v2.9.0
Features
Chores
v2.8.0
Chores
2.7.1 (2021-06-10)
Chores
v2.7.1
Chores
v2.7.0
Chores
v2.6.0
Bug Fixes
- fix gatsby develop on windows fix #โ31396 (ae2e2de)
- enable hmr when importing mdx #โ31288 (c8db78f)
2.5.1 (2021-05-19)
Bug Fixes
v2.5.1
Bug Fixes
v2.5.0
Bug Fixes
- enable hmr when importing mdx #โ31288 #โ31370 (baa0804)
- Img w/ lessBabel option in src/pages not working #โ31210 (b2ae4da)
v2.4.0
Bug Fixes
Chores
v2.3.0
Bug Fixes
v2.2.0
Bug Fixes
v2.1.0
Bug Fixes
- fix html field resolver to work with webpack@5 (0a6c6eb)
- update lodash monorepo to ^4.17.21 #โ29382 (9fd287b)
Chores
2.0.1 (2021-03-11)
Bug Fixes
- fix html field resolver to work with webpack@5 (b7d82da)
v2.0.1
Bug Fixes
- fix html field resolver to work with webpack@5 (b7d82da)
v2.0.0
Bug Fixes
Other Changes
- Move peerdeps to 16.9.0 & 17+ for react & react-dom #โ29735 (6b86b99)
- todos part 2 #โ29414 (ae12e63)
1.10.1 (2021-02-24)
Note: Version bump only for package gatsby-plugin-mdx
v1.10.1
Note: Version bump only for package gatsby-plugin-mdx
v1.10.0
Note: Version bump only for package gatsby-plugin-mdx
v1.9.0
Bug Fixes
- Add
root
to plugin validation #โ29010 (3163ca6) - update vulnerable packages, include React 17 in peerDeps #โ28545 (18b5f30)
Performance Improvements
v1.8.0
Performance Improvements
1.7.1 (2020-12-23)
Note: Version bump only for package gatsby-plugin-mdx
v1.7.1
Note: Version bump only for package gatsby-plugin-mdx
v1.7.0
Note: Version bump only for package gatsby-plugin-mdx
v1.6.0
Note: Version bump only for package gatsby-plugin-mdx
v1.5.0
Chores
Other Changes
v1.4.0
Performance Improvements
v1.3.1
v1.3.0
Features
1.2.53 (2020-11-02)
Bug Fixes
- gatsby-plugin-mdx: allow plugins: [...] in options schema (#โ27709) (f8cf904)
- gatsby-plugin-mdx: remark/hypePlugins options schema (#โ27698) (21f24f8)
1.2.52 (2020-10-28)
Note: Version bump only for package gatsby-plugin-mdx
1.2.51 (2020-10-22)
Note: Version bump only for package gatsby-plugin-mdx
1.2.50 (2020-10-21)
Bug Fixes
1.2.49 (2020-10-20)
Performance Improvements
1.2.48 (2020-10-19)
Note: Version bump only for package gatsby-plugin-mdx
1.2.47 (2020-10-16)
Note: Version bump only for package gatsby-plugin-mdx
1.2.46 (2020-10-08)
Note: Version bump only for package gatsby-plugin-mdx
1.2.45 (2020-10-07)
Bug Fixes
1.2.44 (2020-10-06)
Note: Version bump only for package gatsby-plugin-mdx
1.2.43 (2020-10-01)
Note: Version bump only for package gatsby-plugin-mdx
1.2.42 (2020-09-28)
Note: Version bump only for package gatsby-plugin-mdx
1.2.41 (2020-09-24)
Bug Fixes
1.2.40 (2020-09-15)
Note: Version bump only for package gatsby-plugin-mdx
1.2.39 (2020-09-09)
Bug Fixes
1.2.38 (2020-09-07)
Note: Version bump only for package gatsby-plugin-mdx
1.2.37 (2020-08-28)
Note: Version bump only for package gatsby-plugin-mdx
1.2.36 (2020-08-26)
Note: Version bump only for package gatsby-plugin-mdx
1.2.35 (2020-08-24)
Note: Version bump only for package gatsby-plugin-mdx
1.2.34 (2020-08-05)
Note: Version bump only for package gatsby-plugin-mdx
1.2.33 (2020-08-03)
Bug Fixes
1.2.32 (2020-08-03)
Bug Fixes
1.2.31 (2020-07-31)
Performance Improvements
1.2.30 (2020-07-28)
Note: Version bump only for package gatsby-plugin-mdx
1.2.29 (2020-07-24)
Note: Version bump only for package gatsby-plugin-mdx
1.2.28 (2020-07-21)
Note: Version bump only for package gatsby-plugin-mdx
1.2.27 (2020-07-17)
Bug Fixes
- gatsby-plugin-mdx: Specify new minimum peerDep version for MDX (#โ25798) (ab5f80a), closes #โ25437 #โ25691
Performance Improvements
1.2.26 (2020-07-15)
Performance Improvements
1.2.25 (2020-07-09)
Bug Fixes
1.2.24 (2020-07-09)
Note: Version bump only for package gatsby-plugin-mdx
1.2.23 (2020-07-09)
Performance Improvements
1.2.22 (2020-07-02)
Note: Version bump only for package gatsby-plugin-mdx
1.2.21 (2020-07-01)
Note: Version bump only for package gatsby-plugin-mdx
1.2.20 (2020-07-01)
Note: Version bump only for package gatsby-plugin-mdx
1.2.19 (2020-06-29)
Bug Fixes
1.2.18 (2020-06-24)
Note: Version bump only for package gatsby-plugin-mdx
1.2.17 (2020-06-22)
Note: Version bump only for package gatsby-plugin-mdx
1.2.16 (2020-06-19)
Note: Version bump only for package gatsby-plugin-mdx
1.2.15 (2020-06-09)
Note: Version bump only for package gatsby-plugin-mdx
1.2.14 (2020-06-02)
Note: Version bump only for package gatsby-plugin-mdx
1.2.13 (2020-05-28)
Bug Fixes
1.2.12 (2020-05-22)
Note: Version bump only for package gatsby-plugin-mdx
1.2.11 (2020-05-20)
Note: Version bump only for package gatsby-plugin-mdx
1.2.10 (2020-05-20)
Note: Version bump only for package gatsby-plugin-mdx
1.2.9 (2020-05-19)
Note: Version bump only for package gatsby-plugin-mdx
1.2.8 (2020-05-18)
Note: Version bump only for package gatsby-plugin-mdx
1.2.7 (2020-05-13)
Note: Version bump only for package gatsby-plugin-mdx
1.2.6 (2020-05-05)
Note: Version bump only for package gatsby-plugin-mdx
1.2.5 (2020-05-04)
Note: Version bump only for package gatsby-plugin-mdx
1.2.4 (2020-04-29)
Note: Version bump only for package gatsby-plugin-mdx
1.2.2 (2020-04-29)
Note: Version bump only for package gatsby-plugin-mdx
1.2.1 (2020-04-28)
Bug Fixes
v1.2.53
Bug Fixes
- gatsby-plugin-mdx: allow plugins: [...] in options schema (#โ27709) (f8cf904)
- gatsby-plugin-mdx: remark/hypePlugins options schema (#โ27698) (21f24f8)
v1.2.52
Note: Version bump only for package gatsby-plugin-mdx
v1.2.51
Note: Version bump only for package gatsby-plugin-mdx
v1.2.50
Bug Fixes
v1.2.49
Performance Improvements
v1.2.48
Note: Version bump only for package gatsby-plugin-mdx
v1.2.47
Note: Version bump only for package gatsby-plugin-mdx
v1.2.46
Note: Version bump only for package gatsby-plugin-mdx
v1.2.45
Bug Fixes
v1.2.44
Note: Version bump only for package gatsby-plugin-mdx
v1.2.43
Note: Version bump only for package gatsby-plugin-mdx
v1.2.42
Note: Version bump only for package gatsby-plugin-mdx
v1.2.41
Bug Fixes
v1.2.40
Note: Version bump only for package gatsby-plugin-mdx
v1.2.39
Bug Fixes
v1.2.38
Note: Version bump only for package gatsby-plugin-mdx
v1.2.37
Note: Version bump only for package gatsby-plugin-mdx
v1.2.36
Note: Version bump only for package gatsby-plugin-mdx
v1.2.35
Note: Version bump only for package gatsby-plugin-mdx
v1.2.34
Note: Version bump only for package gatsby-plugin-mdx
v1.2.33
Bug Fixes
v1.2.32
Bug Fixes
v1.2.30
Note: Version bump only for package gatsby-plugin-mdx
v1.2.29
Note: Version bump only for package gatsby-plugin-mdx
v1.2.28
Note: Version bump only for package gatsby-plugin-mdx
v1.2.27
Bug Fixes
- gatsby-plugin-mdx: Specify new minimum peerDep version for MDX (#โ25798) (ab5f80a), closes #โ25437 #โ25691
Performance Improvements
v1.2.26
Performance Improvements
v1.2.25
Bug Fixes
v1.2.24
Note: Version bump only for package gatsby-plugin-mdx
v1.2.23
Performance Improvements
v1.2.22
Note: Version bump only for package gatsby-plugin-mdx
v1.2.21
Note: Version bump only for package gatsby-plugin-mdx
v1.2.19
Bug Fixes
v1.2.18
Note: Version bump only for package gatsby-plugin-mdx
v1.2.17
Note: Version bump only for package gatsby-plugin-mdx
v1.2.16
Note: Version bump only for package gatsby-plugin-mdx
v1.2.15
Note: Version bump only for package gatsby-plugin-mdx
v1.2.14
Note: Version bump only for package gatsby-plugin-mdx
v1.2.13
Bug Fixes
[v1.2.12
](https://togithub.com/gatsbyjs/gatsby/blob/HEAD/packages/gatsby-plugin-mdx/CHANGELOG.md#โ1212-httpsgithubcomgatsbyj
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, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.