fix(deps): update dependency gatsby-plugin-mdx to v2 [security]#472
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency gatsby-plugin-mdx to v2 [security]#472renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
August 6, 2024 12:22
aaccdbf to
63e49f9
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
2 times, most recently
from
August 13, 2025 16:58
e224543 to
b78dc1f
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
August 19, 2025 19:50
b78dc1f to
f1ea077
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
August 31, 2025 10:10
f1ea077 to
2c23513
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
September 25, 2025 16:31
2c23513 to
5c8613a
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
October 21, 2025 22:35
5c8613a to
69ce493
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
November 11, 2025 00:55
69ce493 to
75493a1
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
November 18, 2025 22:51
75493a1 to
7d8340f
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
December 3, 2025 19:34
7d8340f to
73fce54
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
December 31, 2025 16:58
73fce54 to
365305c
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
January 8, 2026 20:36
365305c to
418a1a2
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
January 19, 2026 17:41
418a1a2 to
13fce7d
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
February 2, 2026 20:40
13fce7d to
58bebdf
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
2 times, most recently
from
February 17, 2026 15:42
c706b5c to
8b907c4
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
March 5, 2026 16:04
8b907c4 to
62753ce
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
March 13, 2026 16:55
62753ce to
460b8e5
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
2 times, most recently
from
April 1, 2026 17:00
5bdb8a0 to
900df6e
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
April 8, 2026 20:40
900df6e to
6dc3f74
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
3 times, most recently
from
April 29, 2026 20:27
11144bc to
0dacec6
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
2 times, most recently
from
May 18, 2026 16:10
c0249aa to
cfe5c39
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
2 times, most recently
from
June 1, 2026 19:39
4250d96 to
8d89bd9
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
June 11, 2026 14:16
8d89bd9 to
f04736a
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
July 12, 2026 13:03
f04736a to
9678386
Compare
renovate
Bot
force-pushed
the
renovate/npm-gatsby-plugin-mdx-vulnerability
branch
from
July 17, 2026 01:11
9678386 to
bf55567
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:
1.1.7→2.14.1Unsanitized JavaScript code injection possible in gatsby-plugin-mdx
CVE-2022-25863 / GHSA-mj46-r4gr-5x83
More information
Details
Impact
The gatsby-plugin-mdx plugin prior to versions 3.15.2 and 2.14.1 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 when passing input in both webpack (MDX files insrc/pagesor 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:
Patches
A patch has been introduced in
gatsby-plugin-mdx@3.15.2andgatsby-plugin-mdx@2.14.1which 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 MDX input is attempting to use the Frontmatter engine.Workarounds
If an older version of
gatsby-plugin-mdxmust 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.
Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
gatsbyjs/gatsby (gatsby-plugin-mdx)
v2.14.1Compare Source
v2.14.0Compare Source
🧾 Release notes
Bug Fixes
Chores
@babel/runtimedependencies #32954 (401b358)v2.13.0Compare Source
🧾 Release notes
Chores
v2.12.0Compare Source
🧾 Release notes
Chores
v2.11.0Compare Source
🧾 Release notes
Bug Fixes
2.10.1 (2021-07-26)
Bug Fixes
v2.10.1Compare Source
🧾 Release notes
Bug Fixes
2.10.1 (2021-07-26)
Bug Fixes
v2.10.0Compare Source
🧾 Release notes
Chores
v2.9.0Compare Source
🧾 Release notes
Features
Chores
v2.8.0Compare Source
🧾 Release notes
Chores
2.7.1 (2021-06-10)
Chores
v2.7.1Compare Source
🧾 Release notes
Chores
2.7.1 (2021-06-10)
Chores
v2.7.0Compare Source
🧾 Release notes
Chores
v2.6.0Compare Source
🧾 Release notes
Bug Fixes
2.5.1 (2021-05-19)
Bug Fixes
v2.5.1Compare Source
🧾 Release notes
Bug Fixes
2.5.1 (2021-05-19)
Bug Fixes
v2.5.0Compare Source
🧾 Release notes
Bug Fixes
v2.4.0Compare Source
🧾 Release notes
Bug Fixes
Chores
v2.3.0Compare Source
🧾 Release notes
Bug Fixes
v2.2.0Compare Source
🧾 Release notes
Bug Fixes
v2.1.0Compare Source
🧾 Release notes
Bug Fixes
Chores
2.0.1 (2021-03-11)
Bug Fixes
v2.0.1Compare Source
🧾 Release notes
Bug Fixes
Chores
2.0.1 (2021-03-11)
Bug Fixes
v2.0.0Compare Source
🧾 Release notes
Bug Fixes
Other Changes
1.10.1 (2021-02-24)
Note: Version bump only for package gatsby-plugin-mdx
v1.10.1Compare Source
🧾 Release notes
Bug Fixes
Other Changes
1.10.1 (2021-02-24)
Note: Version bump only for package gatsby-plugin-mdx
v1.10.0Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-plugin-mdx
v1.9.0Compare Source
🧾 Release notes
Bug Fixes
rootto plugin validation #29010 (3163ca6)Performance Improvements
v1.8.0Compare Source
🧾 Release notes
Performance Improvements
1.7.1 (2020-12-23)
Note: Version bump only for package gatsby-plugin-mdx
v1.7.1Compare Source
🧾 Release notes
Performance Improvements
1.7.1 (2020-12-23)
Note: Version bump only for package gatsby-plugin-mdx
v1.7.0Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-plugin-mdx
v1.6.0Compare Source
🧾 Release notes
Note: Version bump only for package gatsby-plugin-mdx
v1.5.0Compare Source
🧾 Release notes
Chores
Other Changes
v1.4.0Compare Source
🧾 Release notes
Performance Improvements
v1.3.1Compare Source
v1.3.0Compare Source
Features
1.2.53 (2020-11-02)
Bug Fixes
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
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.53Compare Source
Features
1.2.53 (2020-11-02)
Bug Fixes
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
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
Configuration
📅 Schedule: (UTC)
🚦 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.