Skip to content
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

fix(deps): update dependency gatsby-plugin-sharp to v4 [security] #599

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 28, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
gatsby-plugin-sharp (source) 2.6.14 -> 4.25.1 age adoption passing confidence

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 gatsby-plugin-sharp@5.8.1 and gatsby-plugin-sharp@4.25.1 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 security@gatsbyjs.com.


Release Notes

gatsbyjs/gatsby (gatsby-plugin-sharp)

v4.25.1

Compare Source

v4.25.0

Compare Source

v4.24.0

Compare Source

🧾 Release notes

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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.23.0

Compare Source

🧾 Release notes

Chores

v4.22.0

Compare Source

🧾 Release notes

Chores

v4.21.0

Compare Source

🧾 Release notes

Chores

v4.20.0

Compare Source

🧾 Release notes

Bug Fixes

v4.19.0

Compare Source

🧾 Release notes

Bug Fixes
4.18.1 (2022-07-12)

Note: Version bump only for package gatsby-plugin-sharp

v4.18.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.18.0

Compare Source

🧾 Release notes

Bug Fixes

v4.17.0

Compare Source

🧾 Release notes

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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.16.0

Compare Source

🧾 Release notes

Features
Performance Improvements
4.15.1 (2022-06-01)

Note: Version bump only for package gatsby-plugin-sharp

v4.15.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.15.0

Compare Source

🧾 Release notes

Chores
4.14.1 (2022-05-12)

Note: Version bump only for package gatsby-plugin-sharp

v4.14.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.14.0

Compare Source

🧾 Release notes

Bug Fixes

v4.13.0

Compare Source

🧾 Release notes

Features
4.12.1 (2022-04-13)

Note: Version bump only for package gatsby-plugin-sharp

v4.12.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.12.0

Compare Source

🧾 Release notes

Bug Fixes
Chores
4.11.1 (2022-03-31)
Bug Fixes

v4.11.1

Compare Source

Bug Fixes

v4.11.0

Compare Source

🧾 Release notes

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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.10.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.10.0

Compare Source

🧾 Release notes

Bug Fixes
4.9.1 (2022-03-09)

Note: Version bump only for package gatsby-plugin-sharp

v4.9.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.9.0

Compare Source

🧾 Release notes

Chores
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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.8.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.8.0

Compare Source

🧾 Release notes

Bug Fixes

v4.7.0

Compare Source

🧾 Release notes

Bug Fixes
  • update minor and patch dependencies for gatsby-plugin-sharp #​34656 (c70ab01)

v4.6.0

Compare Source

🧾 Release notes

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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.5.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.5.0

Compare Source

🧾 Release notes

Chores

v4.4.0

Compare Source

🧾 Release notes

Bug Fixes
Chores

v4.3.0

Compare Source

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

v4.2.0

Compare Source

🧾 Release notes

Bug Fixes
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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.1.3

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.1.2

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.1.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v4.1.0

Compare Source

🧾 Release notes

Bug Fixes
4.0.1 (2021-10-27)
Bug Fixes

v4.0.1

Compare Source

Bug Fixes

v4.0.0

Compare Source

🧾 Release notes

Bug Fixes
Chores
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

Compare Source

v3.14.3

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.14.2

Compare Source

Bug Fixes

v3.14.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.14.0

Compare Source

🧾 Release notes

Features
Bug Fixes
Chores
Other Changes
  • Revert "chore(release): Publish next" (a0c4d44)

v3.13.0

Compare Source

🧾 Release notes

Features
Chores

v3.12.0

Compare Source

🧾 Release notes

Bug Fixes
  • update minor and patch dependencies for gatsby-plugin-sharp #​32633 (c6b75f7)
Chores

v3.11.0

Compare Source

🧾 Release notes

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

Compare Source

Bug Fixes

v3.10.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.10.0

Compare Source

🧾 Release notes

Chores

v3.9.0

Compare Source

🧾 Release notes

Features
  • add unstable_onPluginInit that would execute once in all processes #​31901 (2bf8c0d)

v3.8.0

Compare Source

🧾 Release notes

Chores
3.7.1 (2021-06-10)
Chores

v3.7.1

Compare Source

Chores

v3.7.0

Compare Source

🧾 Release notes

Chores

v3.6.0

Compare Source

🧾 Release notes

Note: Version bump only for package gatsby-plugin-sharp

v3.5.0

Compare Source

🧾 Release notes

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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.4.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.4.0

Compare Source

🧾 Release notes

Bug Fixes
3.3.1 (2021-04-20)

Note: Version bump only for package gatsby-plugin-sharp

v3.3.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.3.0

Compare Source

🧾 Release notes

Chores
3.2.1 (2021-04-07)

Note: Version bump only for package gatsby-plugin-sharp

v3.2.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.2.0

Compare Source

🧾 Release notes

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

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.1.2

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.1.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.1.0

Compare Source

🧾 Release notes

Bug Fixes
Chores
3.0.1 (2021-03-11)

Note: Version bump only for package gatsby-plugin-sharp

v3.0.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v3.0.0

Compare Source

🧾 Release notes

Features
Bug Fixes
Chores
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

v2.14.4

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v2.14.3

Compare Source

Other Changes

v2.14.2

Compare Source

Bug Fixes

v2.14.1

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v2.14.0

Compare Source

🧾 Release notes

Features
Bug Fixes
Chores
2.13.4 (2021-01-29)

Note: Version bump only for package gatsby-plugin-sharp

2.13.3 (2021-01-28)

Note: Version bump only for package gatsby-plugin-sharp

2.13.2 (2021-01-26)

Note: Version bump only for package gatsby-plugin-sharp

2.13.1 (2021-01-21)

Note: Version bump only for package gatsby-plugin-sharp

v2.13.4

Compare Source

Note: Version bump only for package gatsby-plugin-sharp

v2.13.3

[Compare Source](https://togithub.com/gatsbyjs/gatsby/compare/3c8c67447545d1a4395e67848d10a2d50d3f4144...4e4b1edb216aac131040097ef8465b05c


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 is behind base branch, 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.

@vercel
Copy link

vercel bot commented May 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
neontribe-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 1:30pm

@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 14a1ff8 to bb16aa5 Compare June 2, 2023 14:03
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from bb16aa5 to 6c01886 Compare June 2, 2023 14:19
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 6c01886 to 9e74bef Compare September 1, 2023 14:58
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 9e74bef to 4c6a2d7 Compare September 1, 2023 17:13
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 4c6a2d7 to 2616d25 Compare November 3, 2023 15:02
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 2616d25 to cd79fa1 Compare January 3, 2024 15:02
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from cd79fa1 to f8d1be9 Compare February 5, 2024 09:37
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from f8d1be9 to 0f6ae47 Compare February 9, 2024 09:34
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 0f6ae47 to 01192b2 Compare March 15, 2024 11:11
@renovate renovate bot changed the title fix(deps): update dependency gatsby-plugin-sharp to v4 [security] fix(deps): update dependency gatsby-plugin-sharp to v4 [security] - autoclosed Apr 3, 2024
@renovate renovate bot closed this Apr 3, 2024
@renovate renovate bot deleted the renovate/npm-gatsby-plugin-sharp-vulnerability branch April 3, 2024 13:26
@renovate renovate bot changed the title fix(deps): update dependency gatsby-plugin-sharp to v4 [security] - autoclosed fix(deps): update dependency gatsby-plugin-sharp to v4 [security] Apr 3, 2024
@renovate renovate bot reopened this Apr 3, 2024
@renovate renovate bot restored the renovate/npm-gatsby-plugin-sharp-vulnerability branch April 3, 2024 16:33
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 01192b2 to 0d1b433 Compare April 3, 2024 16:34
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 0d1b433 to 4fe164f Compare April 25, 2024 14:48
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from fb5941e to 6aa3fd4 Compare May 3, 2024 10:51
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 6aa3fd4 to c436978 Compare May 24, 2024 09:25
@renovate renovate bot changed the title fix(deps): update dependency gatsby-plugin-sharp to v4 [security] Update dependency gatsby-plugin-sharp to v4 [SECURITY] May 24, 2024
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from c436978 to 6933f35 Compare May 31, 2024 09:26
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 6933f35 to 7d2234b Compare June 5, 2024 13:28
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 7d2234b to 3b42d0a Compare June 5, 2024 14:44
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 3b42d0a to d5786f8 Compare June 10, 2024 08:53
@renovate renovate bot changed the title Update dependency gatsby-plugin-sharp to v4 [SECURITY] fix(deps): update dependency gatsby-plugin-sharp to v4 [security] Jun 10, 2024
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from d5786f8 to 19388f1 Compare June 10, 2024 09:50
@renovate renovate bot changed the title fix(deps): update dependency gatsby-plugin-sharp to v4 [security] Update dependency gatsby-plugin-sharp to v4 [SECURITY] Jun 10, 2024
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 19388f1 to a44d0c7 Compare July 5, 2024 14:36
@renovate renovate bot changed the title Update dependency gatsby-plugin-sharp to v4 [SECURITY] fix(deps): update dependency gatsby-plugin-sharp to v4 [security] Jul 5, 2024
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from a44d0c7 to 1b8f6ed Compare July 24, 2024 09:23
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 1b8f6ed to 999a0b1 Compare August 14, 2024 09:41
@renovate renovate bot force-pushed the renovate/npm-gatsby-plugin-sharp-vulnerability branch from 999a0b1 to 178c18a Compare September 3, 2024 16:02
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