Coteh / simpleimage

:sunrise_over_mountains: A simple image hosting service implemented using Node.js + Express + MongoDB + Redis
8 stars 5 forks source link

[Snyk] Fix for 1 vulnerabilities #835

Open Coteh opened 6 days ago

Coteh commented 6 days ago

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

Changes included in this PR

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
medium severity 601/1000
Why? Recently disclosed, Has a fix available, CVSS 6.3
Cross-site Scripting (XSS)
SNYK-JS-COOKIE-8163060
No No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Commit messages
Package name: express The new version differs by 112 commits.
  • 8e229f9 4.21.1
  • a024c8a fix(deps): cookie@0.7.1
  • 7e562c6 4.21.0
  • 1bcde96 fix(deps): qs@6.13.0 (#5946)
  • 7d36477 fix(deps): serve-static@1.16.2 (#5951)
  • 40d2d8f fix(deps): finalhandler@1.3.1
  • 77ada90 Deprecate `"back"` magic string in redirects (#5935)
  • 21df421 4.20.0
  • 4c9ddc1 feat: upgrade to serve-static@0.16.0
  • 9ebe5d5 feat: upgrade to send@0.19.0 (#5928)
  • ec4a01b feat: upgrade to body-parser@1.20.3 (#5926)
  • 54271f6 fix: don't render redirect values in anchor href
  • 125bb74 path-to-regexp@0.1.10 (#5902)
  • 2a980ad merge-descriptors@1.0.3 (#5781)
  • a3e7e05 docs: specify new instructions for `question` and `discuss`
  • c5addb9 deps: path-to-regexp@0.1.8 (#5603)
  • e35380a docs: add @ IamLizu to the triage team (#5836)
  • f5b6e67 docs: update scorecard link (#5814)
  • 2177f67 docs: add OSSF Scorecard badge (#5436)
  • f4bd86e Replace Appveyor windows testing with GHA (#5599)
  • 2ec589c Fix Contributor Covenant link definition reference in attribution section (#5762)
  • 4cf7eed remove minor version pinning from ci (#5722)
  • 6d08471 ๐Ÿ“ update people, add ctcpip to TC (#5683)
  • 61421a8 skip QUERY tests for Node 21 only, still not supported (#5695)
See the full diff
Package name: express-session The new version differs by 47 commits.
  • bbeca94 1.18.1
  • 341b179 dep: cookie@0.7.2 (#997)
  • 8f0a1c4 ci: add support for OSSF scorecard reporting (#984)
  • 24d4972 1.18.0
  • 855f21a docs: add connect-ottoman to the list of session stores
  • 991b7ee Add debug log for pathname mismatch
  • 408229e Add "partitioned" to cookie options
  • 50e1429 build: Node.js@20.11
  • 6153b3f build: Node.js@21.6
  • 88e0f2e build: actions/checkout@v4
  • d9354ef Fix handling errors from setting cookie
  • f9f2318 docs: remove session-rethinkdb to the list of session stores
  • 3ee08c4 Add "priority" to cookie options
  • 71c3f74 docs: add connect-cosmosdb to the list of session stores
  • 9d377c5 docs: add dynamodb-store-v3 to the list of session stores
  • a1f884f docs: add @ cyclic.sh/session-store to the list of session stores
  • e5f19ce docs: add note on length of secret
  • 2a7a50b eslint@8.56.0
  • a46e857 supertest@6.3.4
  • 7dec651 build: Node.js@18.19
  • 8e9f7a4 build: Node.js@20.10
  • 6b7c9a0 build: Node.js@21.5
  • 825e6c0 build: fix code coverage aggregate upload
  • c1611ad build: actions/checkout@v3
See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information: ๐Ÿง View latest project report

๐Ÿ›  Adjust project settings

๐Ÿ“š Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

๐Ÿฆ‰ Cross-site Scripting (XSS)

socket-security[bot] commented 6 days ago

New and removed dependencies detected. Learn more about Socket for GitHub โ†—๏ธŽ

Package New capabilities Transitives Size Publisher
npm/body-parser@1.20.3 network Transitive: environment, eval, filesystem, unsafe +30 1.24 MB ulisesgascon
npm/express-session@1.18.1 environment Transitive: filesystem, network +6 190 kB ulisesgascon
npm/express@4.21.1 Transitive: environment, eval, filesystem, network, unsafe +49 1.34 MB blakeembrey, dougwilson, linusu, ...4 more

๐Ÿšฎ Removed packages: npm/body-parser@1.20.2, npm/express-session@1.17.3, npm/express@4.18.2

View full reportโ†—๏ธŽ

codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.89%. Comparing base (879342e) to head (e89ff5b).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #835 +/- ## ======================================= Coverage 82.89% 82.89% ======================================= Files 31 31 Lines 1222 1222 ======================================= Hits 1013 1013 Misses 209 209 ``` | [Flag](https://app.codecov.io/gh/Coteh/simpleimage/pull/835/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Cote) | Coverage ฮ” | | |---|---|---| | [](https://app.codecov.io/gh/Coteh/simpleimage/pull/835/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Cote) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=James+Cote#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.