Skip to content

Testing fix for CVE-2026-40073#15701

Open
yahmed-66 wants to merge 3 commits intosveltejs:mainfrom
yahmed-66:fix/body-size-limit-regression-test
Open

Testing fix for CVE-2026-40073#15701
yahmed-66 wants to merge 3 commits intosveltejs:mainfrom
yahmed-66:fix/body-size-limit-regression-test

Conversation

@yahmed-66
Copy link
Copy Markdown

@yahmed-66 yahmed-66 commented Apr 10, 2026

closes # CVE-2026-40073

When reviewing the fix for the body size limit bypass in the node adapter,
I noticed the existing test suite only covered the updated code paths
(chunked encoding, valid Content-Length) but not the original bypass path.

This adds a test documenting that HTTP/1.1 requests with no Content-Length
and no Transfer-Encoding header return an empty body rather than processing
oversized input.


  • It's really useful if your PR references an issue...
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with pnpm test...

Changesets

  • If your PR makes a change...

Edits

  • Please ensure that 'Allow edits from maintainers' is checked.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 10, 2026

⚠️ No Changeset found

Latest commit: 623ea86

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svelte-docs-bot
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants