Update dependency gatsby-plugin-sharp to v4 [SECURITY]
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| gatsby-plugin-sharp (source) | ^2.2.1 -> ^4.0.0 |
GitHub Vulnerability Alerts
CVE-2023-30548
Impact
The gatsby-plugin-sharp plugin prior to versions 5.8.1 and 4.25.1 contains a path traversal vulnerability exposed when running the Gatsby develop server (gatsby develop).
The following steps can be used to reproduce the vulnerability:
# Create a new Gatsby project, and install gatsby-plugin-sharp
$ npm init gatsby
$ cd my-gatsby-site
$ npm install gatsby-plugin-sharp
# Add the plugin to gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-sharp`,
},
]
}
# Start the Gatsby develop server
$ gatsby develop
# Execute the path traversal vulnerability
$ curl "http://127.0.0.1:8000/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd"
It should be noted that by default gatsby develop is only accessible via the localhost 127.0.0.1, and one would need to intentionally expose the server to other interfaces to exploit this vulnerability by using server options such as --host 0.0.0.0, -H 0.0.0.0, or the GATSBY_HOST=0.0.0.0 environment variable.
Patches
A patch has been introduced in [email protected] and [email protected] which mitigates the issue by ensuring that included paths remain within the project directory.
Workarounds
As stated above, by default gatsby develop is only exposed to the localhost 127.0.0.1. For those using the develop server in the default configuration no risk is posed. If other ranges are required, preventing the develop server from being exposed to untrusted interfaces or IP address ranges would mitigate the risk from this vulnerability.
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 Patrick Rombouts and Bart Veneman [drukwerkdeal.nl] for bringing the issue to our attention.
For more information
Email us at [email protected].
Release Notes
gatsbyjs/gatsby (gatsby-plugin-sharp)
v4.25.1
v4.25.0
v4.24.0
Note: Version bump only for package gatsby-plugin-sharp
4.23.1 (2022-09-22)
Note: Version bump only for package gatsby-plugin-sharp
v4.23.1
Note: Version bump only for package gatsby-plugin-sharp
v4.23.0
Chores
v4.22.0
Chores
v4.21.0
Chores
v4.20.0
Bug Fixes
v4.19.0
Bug Fixes
4.18.1 (2022-07-12)
Note: Version bump only for package gatsby-plugin-sharp
v4.18.1
Note: Version bump only for package gatsby-plugin-sharp
v4.18.0
Bug Fixes
v4.17.0
Note: Version bump only for package gatsby-plugin-sharp
4.16.1 (2022-06-08)
Note: Version bump only for package gatsby-plugin-sharp
v4.16.1
Note: Version bump only for package gatsby-plugin-sharp
v4.16.0
Features
Performance Improvements
4.15.1 (2022-06-01)
Note: Version bump only for package gatsby-plugin-sharp
v4.15.1
Note: Version bump only for package gatsby-plugin-sharp
v4.15.0
Chores
4.14.1 (2022-05-12)
Note: Version bump only for package gatsby-plugin-sharp
v4.14.1
Note: Version bump only for package gatsby-plugin-sharp
v4.14.0
Bug Fixes
- update dependency fs-extra to ^10.1.0 #β34976 (10752ed)
- update dependency semver to ^7.3.7 #β35543 (f593e00)
v4.13.0
Features
4.12.1 (2022-04-13)
Note: Version bump only for package gatsby-plugin-sharp
v4.12.1
Note: Version bump only for package gatsby-plugin-sharp
v4.12.0
Bug Fixes
- update minor and patch dependencies for gatsby-plugin-sharp #β35296 (6f088aa)
- windows quirks #β35246 (392d6bc)
Chores
4.11.1 (2022-03-31)
Bug Fixes
v4.11.1
Bug Fixes
v4.11.0
Refactoring
4.10.2 (2022-03-23)
Note: Version bump only for package gatsby-plugin-sharp
4.10.1 (2022-03-18)
Note: Version bump only for package gatsby-plugin-sharp
v4.10.2
Note: Version bump only for package gatsby-plugin-sharp
v4.10.1
Note: Version bump only for package gatsby-plugin-sharp
v4.10.0
Bug Fixes
- Handle diff duotone settings #β35075 (9690c7c)
- Upgrade
probe-image-sizeto fix memory leak warning fix #β35009 (f98c9ba)
4.9.1 (2022-03-09)
Note: Version bump only for package gatsby-plugin-sharp
v4.9.1
Note: Version bump only for package gatsby-plugin-sharp
v4.9.0
Chores
- Format changelog files (088f23b)
4.8.2 (2022-03-01)
Note: Version bump only for package gatsby-plugin-sharp
4.8.1 (2022-02-25)
Note: Version bump only for package gatsby-plugin-sharp
v4.8.2
Note: Version bump only for package gatsby-plugin-sharp
v4.8.1
Note: Version bump only for package gatsby-plugin-sharp
v4.8.0
Bug Fixes
v4.7.0
Bug Fixes
v4.6.0
Bug Fixes
4.5.2 (2022-01-17)
Note: Version bump only for package gatsby-plugin-sharp
4.5.1 (2022-01-12)
Note: Version bump only for package gatsby-plugin-sharp
v4.5.2
Note: Version bump only for package gatsby-plugin-sharp
v4.5.1
Note: Version bump only for package gatsby-plugin-sharp
v4.5.0
Chores
- update dependency @βtypes/sharp to ^0.29.5 #β34356 (79186ab)
v4.4.0
Bug Fixes
Chores
v4.3.0
Note: Version bump only for package gatsby-plugin-sharp
v4.2.0
Bug Fixes
- update minor and patch dependencies for gatsby-plugin-sharp #β33770 (e9f0f32)
- update dependency sharp to ^0.29.2 #β33766 (0dfbc48)
4.1.4 (2021-11-15)
Note: Version bump only for package gatsby-plugin-sharp
4.1.3 (2021-11-11)
Note: Version bump only for package gatsby-plugin-sharp
4.1.2 (2021-11-10)
Note: Version bump only for package gatsby-plugin-sharp
4.1.1 (2021-11-09)
Note: Version bump only for package gatsby-plugin-sharp
v4.1.4
Note: Version bump only for package gatsby-plugin-sharp
v4.1.3
Note: Version bump only for package gatsby-plugin-sharp
v4.1.2
Note: Version bump only for package gatsby-plugin-sharp
v4.1.1
Note: Version bump only for package gatsby-plugin-sharp
v4.1.0
Bug Fixes
- pass failOnError to sharp in getImageMetadata #β33547 (82cd584)
- pass input buffer instead of readStream when processing image jobs #β33685 (b800559)
4.0.1 (2021-10-27)
Bug Fixes
v4.0.1
Bug Fixes
v4.0.0
Bug Fixes
Chores
- update sharp #β33379 (eb70b46)
- remove old unused code #β33504 (31952b4)
- Remove
sizeByPixelDensityoption #β33468 (d467372)
3.14.3 (2021-11-02)
Note: Version bump only for package gatsby-plugin-sharp
3.14.2 (2021-10-28)
Bug Fixes
3.14.1 (2021-10-06)
Note: Version bump only for package gatsby-plugin-sharp
v3.15.0
v3.14.3
Note: Version bump only for package gatsby-plugin-sharp
v3.14.2
Bug Fixes
v3.14.1
Note: Version bump only for package gatsby-plugin-sharp
v3.14.0
Features
Bug Fixes
- Add TS type/v4 patches for
unstable_onPluginInit#β33062 (8901eb2) - update dependency async to ^3.2.1 for gatsby-plugin-sharp #β32983 (6857e26)
Chores
- update babel monorepo #β32996 (048c7a7)
- update semver #β32979 (ecf1fa7)
- upgrade got package #β32928 (2ac366e)
- update fs-extra (major) #β32654 (eea2687)
Other Changes
- Revert "chore(release): Publish next" (a0c4d44)
v3.13.0
Features
Chores
v3.12.0
Bug Fixes
Chores
- update formatting & linting #β32626 (4a765b5)
- update dependency @βtypes/sharp to ^0.28.5 #β32566 (ef9fa95)
- update babel monorepo #β32564 (a554998)
v3.11.0
Bug Fixes
3.10.2 (2021-07-21)
Bug Fixes
3.10.1 (2021-07-21)
Note: Version bump only for package gatsby-plugin-sharp
v3.10.2
Bug Fixes
v3.10.1
Note: Version bump only for package gatsby-plugin-sharp
v3.10.0
Chores
v3.9.0
Features
v3.8.0
Chores
3.7.1 (2021-06-10)
Chores
v3.7.1
Chores
v3.7.0
Chores
v3.6.0
Note: Version bump only for package gatsby-plugin-sharp
v3.5.0
Bug Fixes
3.4.2 (2021-05-08)
Note: Version bump only for package gatsby-plugin-sharp
3.4.1 (2021-05-05)
Note: Version bump only for package gatsby-plugin-sharp
v3.4.2
Note: Version bump only for package gatsby-plugin-sharp
v3.4.1
Note: Version bump only for package gatsby-plugin-sharp
v3.4.0
Bug Fixes
- Handle fractional image sizes #β31057 #β31081 (21dc379)
- use cpuCount for all parallel parts #β30548 (9dbb772)
3.3.1 (2021-04-20)
Note: Version bump only for package gatsby-plugin-sharp
v3.3.1
Note: Version bump only for package gatsby-plugin-sharp
v3.3.0
Chores
3.2.1 (2021-04-07)
Note: Version bump only for package gatsby-plugin-sharp
v3.2.1
Note: Version bump only for package gatsby-plugin-sharp
v3.2.0
Note: Version bump only for package gatsby-plugin-sharp
3.1.3 (2021-03-30)
Note: Version bump only for package gatsby-plugin-sharp
3.1.2 (2021-03-23)
Note: Version bump only for package gatsby-plugin-sharp
3.1.1 (2021-03-18)
Note: Version bump only for package gatsby-plugin-sharp
v3.1.3
Note: Version bump only for package gatsby-plugin-sharp
v3.1.2
Note: Version bump only for package gatsby-plugin-sharp
v3.1.1
Note: Version bump only for package gatsby-plugin-sharp
v3.1.0
Bug Fixes
Chores
- update eslint to fix linting issues fix #β29988 (5636389)
- update peerdeps to latest major versions #β29857 (0a3e922)
- fix spelling, remove whitespace and fix link fix #β29846 (63bfa09)
3.0.1 (2021-03-11)
Note: Version bump only for package gatsby-plugin-sharp
v3.0.1
Note: Version bump only for package gatsby-plugin-sharp
v3.0.0
Features
Bug Fixes
Chores
- update peerdeps to latest major versions #β29857 #β29867 (cb3b1ca)
- remove unneeded whitespace before commas and full stops #β29629 (acc6a1b)
Other Changes
2.14.4 (2021-05-04)
Note: Version bump only for package gatsby-plugin-sharp
2.14.3 (2021-02-25)
Other Changes
2.14.2 (2021-02-24)
Bug Fixes
2.14.1 (2021-02-05)
Note: Version bump only for package gatsby-plugin-sharp
Configuration
π Schedule: Branch creation - "" in timezone America/Los_Angeles, 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.