Skip to content

🚨 [security] Update koa 2.16.0 → 2.16.1 (patch)#561

Merged
canova merged 1 commit into
masterfrom
depfu/update/yarn/koa-2.16.1
Apr 10, 2025
Merged

🚨 [security] Update koa 2.16.0 → 2.16.1 (patch)#561
canova merged 1 commit into
masterfrom
depfu/update/yarn/koa-2.16.1

Conversation

@depfu

@depfu depfu Bot commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ koa (2.16.0 → 2.16.1) · Repo · Changelog

Security Advisories 🚨

🚨 Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function

Summary

In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app.

Patches

This issue is patched in 2.16.1 and 3.0.0-alpha.5.

PoC

https://gist.github.com/linhnph05/03d677b183636af206ff781bdd19701a

Impact

  1. Redirect user to another phishing site
  2. Make request to another endpoint of the application based on user's cookie
  3. Steal user's cookie
Release Notes

2.16.1

fix: don't render redirect values in anchor ref

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 1 commit:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the dependencies Pull requests that update a dependency file label Apr 9, 2025
@depfu
depfu Bot requested review from canova and julienw April 9, 2025 14:06
@canova
canova merged commit b8ad1e9 into master Apr 10, 2025
@depfu
depfu Bot deleted the depfu/update/yarn/koa-2.16.1 branch April 10, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant