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

JS: Support for Request and NextRequest #19184

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Napalys
Copy link
Contributor

@Napalys Napalys commented Apr 1, 2025

The following pull request adds main two changes:

  • Data passed to the NextResponse constructor is now treated as a sink for js/reflected-xss.
  • Data received from NextRequest and Request is now treated as a remote user input source.

@github-actions github-actions bot added the JS label Apr 1, 2025
@Napalys Napalys force-pushed the js/request_handlers branch from ac5e07d to a1dee15 Compare April 1, 2025 13:01
@Napalys Napalys force-pushed the js/request_handlers branch 3 times, most recently from dda274c to ca5a834 Compare April 1, 2025 17:40
@Napalys Napalys force-pushed the js/request_handlers branch from 736e6df to 2c4b352 Compare April 11, 2025 07:42
@Napalys Napalys marked this pull request as ready for review April 11, 2025 07:57
@Napalys Napalys requested a review from a team as a code owner April 11, 2025 07:57
Copy link
Contributor

@asgerf asgerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall! 👍

@Napalys Napalys requested a review from asgerf April 11, 2025 09:28
Copy link
Contributor

@asgerf asgerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

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.

2 participants