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

Cross-Site Scripting (XSS) medium risk #1856

Open
lalit774 opened this issue Jan 2, 2025 · 4 comments
Open

Cross-Site Scripting (XSS) medium risk #1856

lalit774 opened this issue Jan 2, 2025 · 4 comments
Labels

Comments

@lalit774
Copy link

lalit774 commented Jan 2, 2025

Describe the bug

The koa package is vulnerable to Cross-Site Scripting (XSS). The redirect function in response.js outputs an HTML hyperlink of the supplied URL in the body of the redirect response without sanitizing the URL. An attacker can exploit this by inputting a JavaScript URL that would then be executed.

The application is vulnerable by using this component and passing unvalidated input to the redirect() method. Additionally, the vulnerability can only be exploited if a user is running an older browser.

Root Cause
koa-2.15.3.tgzpackage/lib/response.js[0.0.2, )

#1250
#1289

@lalit774 lalit774 added the bug label Jan 2, 2025
@laverdet
Copy link

laverdet commented Jan 2, 2025

This user is spamming GPT CVE's.

@lalit774
Copy link
Author

lalit774 commented Jan 3, 2025

@laverdet

it is not only chat gpt. We see all those issue in nexus scan. For you it might not be the problem. It easy for you to blame people for reporting. I am not working on all open source plugins. We are using a sub dependency. If you have any big problems. Or it does not make sense. Please ignore it. I did not send this message for you.

@laverdet
Copy link

laverdet commented Jan 4, 2025

I did not send this message for you.

You literally did, when you opened #516 in my repository and others. I mean this in the kindest way possible: this behavior isn't acceptable on GitHub.

@lalit774
Copy link
Author

lalit774 commented Jan 4, 2025

Ok. It is open source. Any one can put their opinion. If you don’t agree. That’s fine. You should nice with other people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants