-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use non-vulnerable version of Node.js 20.x in Dockerfile #6357
Comments
I looked into history, and social-app seems to use Pinning alpine3.18 was done in PDS because of incompatibility with |
The social-app uses Lines 19525 to 19537 in 05312cc
It appears to be safe to upgrade to |
The alpine3.18 was dropped in nodejs/docker-node#2085 The last release is 20.13.1-alpine3.18 which is also vulnerable. |
I believe the fix is to upgrade |
I looked into some GitHub issues linked in docker-node, and it looks like [email protected] and alpine-3.19 are compatible |
I don't see any issue with [email protected] and alpine-3.18 $ docker run --rm node:20-alpine3.18 npm install -g [email protected]
added 43 packages in 4s
10 packages are looking for funding
run `npm fund` for details
npm notice
npm notice New minor version of npm available! 10.5.2 -> 10.9.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.9.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice
$ docker run --rm node:20-alpine3.18 npm install -g [email protected]
added 55 packages in 4s
10 packages are looking for funding
run `npm fund` for details
npm notice
npm notice New minor version of npm available! 10.5.2 -> 10.9.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.9.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice |
The But alpine-3.19 includes That could cause some issues, although not reproducible with simple npm install |
Looks like sharp dependency needs to be updated to 0.33.x first. It comes from $ yarn why sharp
...
=> Found "[email protected]"
info Reasons this module exists
- "@atproto#dev-env#@atproto#bsky" depends on it
- Hoisted from "@atproto#dev-env#@atproto#bsky#sharp"
- Hoisted from "@atproto#dev-env#@atproto#pds#sharp" It was updated in PR bluesky-social/atproto#2958, and social-app will get it when upgrading to:
|
Bumping to |
Describe the Feature
I noticed that social-app uses node:20.11-alpine3.18 which has 13 vulnerabilities.
Search results: https://github.com/search?q=repo%3Abluesky-social%2Fsocial-app+%22node%3A20.11-alpine3.18%22&type=code
Use a version of Node.js that's not vulnerable, like the latest Node.js 20.x alpine
List of official images https://hub.docker.com/_/node
Attachments
No response
Describe Alternatives
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: