Repository navigation
Security Fixes for 48.0.7 - #14819
Merged
Merged
Conversation
Setting more than one value for content-length is now rejected with HeaderError::InvalidSyntax in p2 and p3. Fixes GHSA-r8xh-cgf7-392j (cherry picked from commit f843085)
…railers in a backwards-compatible manner by introducing a new WasiHttpHooks::forbidden_header_filter method. Embedders which customized WasiHttpHooks::is_forbidden_header must switch to using this new method in order to block trailers which are not the DEFAULT_FORBIDDEN_HEADERS. Fixes GHSA-jxcf-8qw5-5c33
…nse bodies The prior implementation did not enforce that this was valid when splicing an existing body into a new response, which made it possible to perform response splitting attacks when responding to a non-spec-compliant client. Fixes GHSA-9prg-84vf-g5fc
Previously, the `JTSequence` macro-instruction contained a conditional branch for the default (selector greater than table size) case. This default branch on aarch64 has a +/- 1MiB range. The `JTSequence` also contains the entire table of 32-bit offsets for each `br_table` target. As a result of these two facts, a branch may have an out-of-bounds target and silently wrap the offset, resulting in an incorrect branch target. This PR fixes the sequence to instead use the offset table for the default case too. The conditional branch is converted into a conditional-select that clamps the index to the last table entry (which we fill with the default target) if out-of-bounds.
pchickey
requested review from
fitzgen and
rvolosatovs
and removed request for
a team
October 19, 2026 18:05
alexcrichton
approved these changes
Oct 19, 2026
Member
|
I think the tests/component-model submodule here got updated by accident (causing CI failures) |
Contributor
Author
|
Yep - fixing now |
This commit fixes an issue where a `StreamAny` can be used to re-type a
future or stream in a manner that can cause a panic within Wasmtime in
certain host situations. The fix here is to unconditionally perform a
type-check when lowering a future or stream into a guest. This is
already required for `{Stream,Future}Any`, and it's additionally
required in this issue when the `T` in `StreamReader<T>` contains a
`StreamAny`, for example. This technically makes the static type-check
of `StreamReader<u32>` redundant, but it seems best to fully close this
hole since bytecodealliance#14733 was not a complete fix for this class of issues.
pchickey
force-pushed
the
fixes-48.0.7
branch
from
October 19, 2026 18:14
979f82a to
96b0172
Compare
pchickey
enabled auto-merge (squash)
October 19, 2026 18:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GHSA-r8xh-cgf7-392j
is_forbidden_headerhookGHSA-jxcf-8qw5-5c33
GHSA-9prg-84vf-g5fc
br_tableinstructionGHSA-mghf-wjfp-p5xm
#14768
GHSA-9pvw-hwfg-92h5