Skip to content

Conversation

@azurit
Copy link
Member

@azurit azurit commented Mar 27, 2025

This PR adds header x-middleware-subrequest into tx.restricted_headers_basic, so it's going to be blocked by default. At first, we were considering to not block it by default (as it will disable some features of Next.js) but after it was completely removed from Next.js, i suggest to just block it. If we do not agree on this, i can move it into tx.restricted_headers_extended which will block it from PL2.

Fixes: #4051

@github-actions
Copy link
Contributor

github-actions bot commented Mar 27, 2025

📊 Quantitative test results for language: eng, year: 2023, size: 10K, paranoia level: 1:
🚀 Quantitative testing did not detect new false positives

@azurit azurit added this pull request to the merge queue Mar 28, 2025
Merged via the queue into coreruleset:main with commit 3c86af4 Mar 28, 2025
6 checks passed
@azurit azurit deleted the Nextjs branch March 28, 2025 08:55
@azurit azurit added the release:new-detection In this PR we introduce a new detection label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:new-detection In this PR we introduce a new detection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rule for CVE-2025-29927: Authorization Bypass in Next.js Middleware

3 participants