SocialGouv / recherche-entreprises

API de recherche d'entreprises Françaises
https://recherche-entreprises.fabrique.social.gouv.fr
32 stars 5 forks source link

fix(deps): update dependency @koa/cors to v5 [security] #232

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@koa/cors ^3.1.0 -> ^5.0.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2023-49803

Currently, the middleware operates in a way that if an allowed origin is not provided, it will return an Access-Control-Allow-Origin header with the value of the origin from the request. This behavior completely disables one of the most crucial elements of browsers - the Same Origin Policy (SOP), this could cause a very serious security threat to the users of this middleware.

If such behavior is expected, for instance, when middleware is used exclusively for prototypes and not for production applications, it should be heavily emphasized in the documentation along with an indication of the risks associated with such behavior, as many users may not be aware of it.


Release Notes

koajs/cors (@​koa/cors) ### [`v5.0.0`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#500--2023-12-11) [Compare Source](https://redirect.github.com/koajs/cors/compare/4.0.0...5.0.0) \================== **others** - \[[`f31dac9`](http://github.com/koajs/cors/commit/f31dac99f5355c41e7d4dd3c4a80c5f154941a11)] - Merge pull request from GHSA-qxrj-hx23-xp82 (fengmk2 <>) ### [`v4.0.0`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#400--2022-10-08) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.4.3...4.0.0) \================== **fixes** - \[[`7358ab3`](http://github.com/koajs/cors/commit/7358ab381af6413013938f49c56ac79a7453d35c)] - fix: Calling all options even if origin header is not present ([#​87](https://redirect.github.com/koajs/cors/issues/87)) (Cleber Rossi <>) **others** - \[[`d19090f`](http://github.com/koajs/cors/commit/d19090fc8591059895fa9c606967d3a67fd3c5b8)] - refactor: \[BREAKING] drop node 8, 10, 12 support ([#​88](https://redirect.github.com/koajs/cors/issues/88)) (fengmk2 <>) ### [`v3.4.3`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#343--2022-10-08) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.4.2...3.4.3) \================== **others** - \[[`208b86c`](http://github.com/koajs/cors/commit/208b86c893013d65e4479219aae0763b807bc8a6)] - Revert "fix: Calling all options even if origin header is not present ([#​87](https://redirect.github.com/koajs/cors/issues/87))" (fengmk2 <>) ### [`v3.4.2`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#342--2022-10-06) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.4.1...3.4.2) \================== **fixes** - \[[`2e8da5b`](http://github.com/koajs/cors/commit/2e8da5bd2acbc9c1adfabdea459982b3d5bdd31f)] - fix: Calling all options even if origin header is not present ([#​87](https://redirect.github.com/koajs/cors/issues/87)) (Cleber Rossi <>) ### [`v3.4.1`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#341--2022-08-19) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.4.0...3.4.1) \================== **fixes** - \[[`1205356`](http://github.com/koajs/cors/commit/12053567ef2caa8f4191298bc9d010017bb0f233)] - fix: must specify an origin value instead of "\*" wildcard ([#​85](https://redirect.github.com/koajs/cors/issues/85)) (Tyreal Hu <>) ### [`v3.4.0`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#340--2022-08-19) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.3.0...3.4.0) \================== **others** - \[[`2cd4789`](http://github.com/koajs/cors/commit/2cd4789f66a64cd13228e7305cce9069bd2d1283)] - 🤖 TEST: Run test on Node.js 18 ([#​86](https://redirect.github.com/koajs/cors/issues/86)) (fengmk2 <>) - \[[`ae56e05`](http://github.com/koajs/cors/commit/ae56e054cb669c73784f8a12ab6413abca6eff57)] - Create codeql-analysis.yml (fengmk2 <>) - \[[`c4b5d21`](http://github.com/koajs/cors/commit/c4b5d21e0cf5ab76109be65f4b7267d0ccacce81)] - refactor: use friendlier promise checking ([#​84](https://redirect.github.com/koajs/cors/issues/84)) (Swain Molster <>) - \[[`fbe33bc`](http://github.com/koajs/cors/commit/fbe33bca26373965429356f02144507c31326cfc)] - 📖 DOC: Add privateNetworkAccess js to README (fengmk2 <>) ### [`v3.3.0`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#330--2022-03-29) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.2.0...3.3.0) \================== **features** - \[[`c279fc3`](http://github.com/koajs/cors/commit/c279fc36e60f3b2835395d15c4604fa1b284fc5f)] - feat: Add support for "Private Network Access" ([#​83](https://redirect.github.com/koajs/cors/issues/83)) (Chi Ma <<55783048+cma-skedulo@users.noreply.github.com>>) **others** - \[[`97d9220`](http://github.com/koajs/cors/commit/97d92207ae33aa2dbdd21d218ef836183194c257)] - chore: credentials jsdoc ([#​80](https://redirect.github.com/koajs/cors/issues/80)) (Jing Yi Wang <>) ### [`v3.2.0`](https://redirect.github.com/koajs/cors/blob/HEAD/History.md#320--2022-03-12) [Compare Source](https://redirect.github.com/koajs/cors/compare/3.1.0...3.2.0) \================== **features** - \[[`134ec9b`](http://github.com/koajs/cors/commit/134ec9b54b18565cf8bba8c5e6b6639d7d7e43a3)] - feat: support secure context headers (Levi Tomes <>) **others** - \[[`bcadb55`](http://github.com/koajs/cors/commit/bcadb5599905c28934ed3c28f866f6cdb3f77aee)] - test: run test on github action (fengmk2 <>)

Configuration

📅 Schedule: Branch creation - "" in timezone Europe/Paris, 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 was generated by Mend Renovate. View the repository job log.

socket-security[bot] commented 3 months ago

Report too large to display inline

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 NoteSourceCI
Install scripts npm/nodemon@2.0.15
  • Install script: postinstall
  • Source: node bin/postinstall || exit 0
🚫

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/nodemon@2.0.15