Skip to content
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

fix(deps): update dependency express - autoclosed #4

Closed

Conversation

mend-on-mend[bot]
Copy link

@mend-on-mend mend-on-mend bot commented Oct 22, 2024

This PR contains the following updates:

Package Type Update Change
express (source) dependencies patch 4.21.0 -> 4.21.1
express (source) dependencies minor 4.19.2 -> 4.20.0

express vulnerable to XSS via response.redirect()

CVE-2024-43796 / GHSA-qw6h-vgh9-j6wx

More information

Details

Impact

In express <4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code

Patches

this issue is patched in express 4.20.0

Workarounds

users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist

Details

successful exploitation of this vector requires the following:

  1. The attacker MUST control the input to response.redirect()
  2. express MUST NOT redirect before the template appears
  3. the browser MUST NOT complete redirection before:
  4. the user MUST click on the link in the template

Severity

  • CVSS Score: 5.0 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

expressjs/express (express)

v4.21.1

Compare Source

What's Changed

Full Changelog: expressjs/express@4.21.0...4.21.1


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 is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

@mend-on-mend mend-on-mend bot force-pushed the whitesource-remediate/npm-express-vulnerability branch from 1d04746 to b2c0540 Compare October 25, 2024 01:39
Signed-off-by: mend-on-mend[bot] <mend-on-mend[bot]@users.noreply.github.com>
@mend-on-mend mend-on-mend bot force-pushed the whitesource-remediate/npm-express-vulnerability branch from b2c0540 to d257ab1 Compare October 25, 2024 05:33
@mend-on-mend mend-on-mend bot changed the title fix(deps): update dependency express fix(deps): update dependency express - autoclosed Nov 6, 2024
@mend-on-mend mend-on-mend bot closed this Nov 6, 2024
@mend-on-mend mend-on-mend bot deleted the whitesource-remediate/npm-express-vulnerability branch November 6, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants