storm-software / acidic

🧪 Acidic is a modeling tool that can be used to describe and generate code for API end points, database tables, type definitions, client components, and so much more!
Apache License 2.0
3 stars 0 forks source link

fix(deps): update dependency express to v4.19.2 [security] #48

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
express (source) 4.18.2 -> 4.19.2 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-29041

Impact

Versions of Express.js prior to 4.19.2 and pre-release alpha and beta versions before 5.0.0-beta.3 are affected by an open redirect vulnerability using malformed URLs.

When a user of Express performs a redirect using a user-provided URL Express performs an encode using encodeurl on the contents before passing it to the location header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list.

The main method impacted is res.location() but this is also called from within res.redirect().

Patches

https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94

An initial fix went out with express@4.19.0, we then patched a feature regression in 4.19.1 and added improved handling for the bypass in 4.19.2.

Workarounds

The fix for this involves pre-parsing the url string with either require('node:url').parse or new URL. These are steps you can take on your own before passing the user input string to res.location or res.redirect.

References

https://github.com/expressjs/express/pull/5539 https://github.com/koajs/koa/issues/1800 https://expressjs.com/en/4x/api.html#res.location


Release Notes

expressjs/express (express) ### [`v4.19.2`](https://togithub.com/expressjs/express/blob/HEAD/History.md#4192--2024-03-25) [Compare Source](https://togithub.com/expressjs/express/compare/4.19.1...4.19.2) \========== - Improved fix for open redirect allow list bypass ### [`v4.19.1`](https://togithub.com/expressjs/express/blob/HEAD/History.md#4191--2024-03-20) [Compare Source](https://togithub.com/expressjs/express/compare/4.19.0...4.19.1) \========== - Allow passing non-strings to res.location with new encoding handling checks ### [`v4.19.0`](https://togithub.com/expressjs/express/compare/4.18.3...83e77aff6a3859d58206f3ff9501277023c03f87) [Compare Source](https://togithub.com/expressjs/express/compare/4.18.3...4.19.0) ### [`v4.18.3`](https://togithub.com/expressjs/express/blob/HEAD/History.md#4183--2024-02-26) [Compare Source](https://togithub.com/expressjs/express/compare/4.18.2...4.18.3) \========== - Fix routing requests without method - deps: body-parser@1.20.2 - Fix strict json error message on Node.js 19+ - deps: content-type@~1.0.5 - deps: raw-body@2.5.2

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 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 has been generated by Mend Renovate. View repository job log here.

socket-security[bot] commented 3 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/chalk@5.3.0 None 0 43.7 kB sindresorhus
npm/chokidar@3.5.3 environment, filesystem +13 358 kB paulmillr
npm/espree@9.6.1 None +3 662 kB eslintbot
npm/glob@10.3.10 Transitive: environment, filesystem, shell +30 1.95 MB isaacs
npm/react-dom@18.2.0 environment +3 4.62 MB gnoff
npm/react@18.2.0 environment +2 337 kB gnoff
npm/tslib@2.6.2 None 0 84 kB typescript-bot
npm/typescript@5.2.2 None 0 40.6 MB typescript-bot
npm/typescript@5.3.3 None 0 32 MB typescript-bot
npm/zod@3.22.4 None 0 628 kB colinmcd94

🚮 Removed packages: npm/@dagrejs/dagre@1.0.4, npm/@eslint/eslintrc@3.0.0, npm/@nx/cypress@18.0.4, npm/@nx/devkit@18.0.4, npm/@nx/esbuild@18.0.4, npm/@nx/eslint-plugin@18.0.4, npm/@nx/eslint@18.0.4, npm/@nx/jest@18.0.4, npm/@nx/js@18.0.4, npm/@nx/react@18.0.4, npm/@nx/storybook@18.0.4, npm/@nx/vite@18.0.4, npm/@nx/web@18.0.4, npm/@nx/workspace@18.0.4, npm/@storm-software/config-tools@1.27.13, npm/@storm-software/config@1.2.13, npm/@storm-software/git-tools@1.36.13, npm/@storm-software/linting-tools@1.38.13, npm/@storm-software/workspace-tools@1.56.13, npm/@storm-stack/cli@1.17.2, npm/@storm-stack/date-time@1.18.2, npm/@storm-stack/errors@1.18.2, npm/@storm-stack/file-system@1.21.2, npm/@storm-stack/jotai@1.16.2, npm/@storm-stack/logging@1.20.2, npm/@storm-stack/plugin-system@1.8.2, npm/@storm-stack/serialization@1.18.2, npm/@storm-stack/telemetry@1.2.2, npm/@storm-stack/unique-identifier@1.17.2, npm/@storm-stack/utilities@1.17.2, npm/@storybook/addon-essentials@7.6.6, npm/@storybook/addon-interactions@7.6.6, npm/@storybook/addons@7.6.6, npm/@storybook/core-server@7.6.6, npm/@storybook/jest@0.2.3, npm/@storybook/react-vite@7.6.6, npm/@storybook/react@7.6.6, npm/@storybook/test-runner@0.16.0, npm/@storybook/testing-library@0.2.2, npm/@storybook/theming@7.6.6, npm/@swc-node/register@1.8.0, npm/@swc/cli@0.1.63, npm/@swc/core@1.3.101, npm/@swc/helpers@0.5.3, npm/@testing-library/react@14.0.0, npm/@types/jest@29.5.11, npm/@types/node@18.19.4, npm/@types/node@20.9.0, npm/@types/prettier@3.0.0, npm/@types/react-dom@18.2.18, npm/@types/react@18.2.55, npm/@types/vscode@1.85.0, npm/@typescript-eslint/eslint-plugin@6.13.2, npm/@typescript-eslint/parser@6.13.2, npm/@vitejs/plugin-react-swc@3.5.0, npm/@vitejs/plugin-react@4.2.1, npm/@vitest/coverage-v8@1.2.2, npm/@vitest/ui@1.0.4, npm/@vscode/vsce@2.21.1, npm/autoprefixer@10.4.13, npm/bentocache@1.0.0-beta.7

View full report↗︎

socket-security[bot] commented 3 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/esbuild@0.18.20
  • orphan: npm/esbuild@0.18.20

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/esbuild@0.18.20