-
Notifications
You must be signed in to change notification settings - Fork 16
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
security: update tough-cookie dependency to 4.1.3 #32
Conversation
Hi @tgriesser , could you or someone from the team take a look at this PR? Thx in andvance |
+1 |
You can temporary solved it by adding |
For npm "overrides": {
"tough-cookie": "^4.1.3"
} works as a temporary fix. |
Bump |
any update on this PR approval ? |
The recently upgrade cypress installation (`12.7.1` -> `12.7.2`) has resulted in a vulnerability warning: https://app.circleci.com/pipelines/github/ministryofjustice/hmpps-community-accommodation-tier-2-ui/519/workflows/4ea28190-5859-4266-87de-6c4ff38d402d/jobs/1381 This is [CWE 1321](https://github.com/advisories?query=cwe%3A1321) [tough-cookie Prototype Pollution vulnerability](GHSA-72xf-g2v4-qvf3) and comes from cypress' `@cypress/request package` This has not yet been fixed in cypress though there's a PR: cypress-io/request#32 We declare a temporary 'override' in `package.json` to force this upgrade.
The recently upgraded cypress installation (`12.7.1` -> `12.7.2`) has resulted in a vulnerability warning: https://app.circleci.com/pipelines/github/ministryofjustice/hmpps-community-accommodation-tier-2-ui/519/workflows/4ea28190-5859-4266-87de-6c4ff38d402d/jobs/1381 This is [CWE 1321](https://github.com/advisories?query=cwe%3A1321) [tough-cookie Prototype Pollution vulnerability](GHSA-72xf-g2v4-qvf3) and comes from cypress' `@cypress/request package` This has not yet been fixed in cypress though there's a PR waiting to be merged: cypress-io/request#32 We declare a temporary 'override' in `package.json` to force this upgrade.
bump - any chance this gets fixed soon @tgriesser? |
needing this approved and merged in as well please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But it needs approval from the maintainer.
I have added related issues which affect the repo without this PR
yarn add tough-cookie to update to |
npm install
npm audit --omit=dev shows
with this PR. 👍🏻 |
Hi everyone, sorry for the late response. This PR was not seen by our team. I am having someone take a look to get this PR ready for merge if possible. I see some failing checks at the moment. Thank you for your patience. |
.github/workflows/yarn.yaml
Outdated
jobs: | ||
build: | ||
name: Install and test with yarn | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To get the tests to pass, you need to use Node.js 16.
.github/workflows/yarn.yaml
Outdated
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node-version: "18" | |
node-version: 16.16.0 |
This matches Cypress' .node-version.
cypress issue will be fixed after: cypress-io/request#32
🎉 This PR is included in version 2.88.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@nagash77 in case you've not seen it, there's also GHSA-p8p7-x288-28g6 which needs addressing - there is #30 and #28 open for that |
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
cypress issue will be fixed after: cypress-io/request#32
PR Checklist:
npm test
locally and all tests are passing.Fixes Vulnerable version of tough-cookie in use (2.5.0) CVE-2023-26136 #31 and therefore CVE-2023-26136
PR Description
As described in #31, the tough-cookie dependency had a prototype pollution issue before v4.1.3. This PR updates the tough-cookie dependency to fix this.