Skip to content

fix(deps): update url to 2.5.9 for RUSTSEC-2026-0592 - #11370

Merged
Xuanwo merged 2 commits into
mainfrom
xuanwo/update-url-form-urlencoded-lock
Nov 22, 2026
Merged

Xuanwo merged 2 commits into
mainfrom
xuanwo/update-url-form-urlencoded-lock

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 22, 2026

Copy link
Copy Markdown
Member

Cargo.lock on main locks url 2.5.8, which RUSTSEC-2026-0592 marks as vulnerable: Url::origin() recurses once per nested blob: prefix, so a crafted URL overflows the stack and aborts the process. The advisory lists 2.5.9 as the first patched release.

This is the cargo-deny failure currently blocking #11365. On its exact head f2d3971dcfb0ef170a6aca634aeafb413ffc7b58, hosted job 137205006261 fails with:

error[vulnerability]: Stack overflow in `Url::origin()` on nested `blob:` URLs
    ┌─ /github/workspace/Cargo.lock:792:1
...
    ├ ID: RUSTSEC-2026-0592
    ├ Solution: Upgrade to >=2.5.9 (try `cargo update -p url`)

This changes only the lockfile. url moves from 2.5.8 to 2.5.9, and form_urlencoded from 1.2.2 to 1.2.3, the version url 2.5.9 requires (^1.2.3). url is transitive here and every dependent accepts a compatible range, so Cargo.toml, the feature set and the 1.95 toolchain are unchanged. No advisory ignore is added.

Validation at this head:

  • cargo metadata --locked and cargo +1.95.0 metadata --locked --no-deps pass.
  • cargo tree -i [email protected] --locked resolves one url 2.5.9.
  • cargo deny check advisories passes; the only output is the pre-existing warning for yanked libsais-rs 0.2.2, which this change does not touch.
  • git diff --check passes; the diff is 4 insertions and 4 deletions, limited to the two lockfile entries.
  • The published crate checksums match the lockfile: url 2.5.9 f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a, form_urlencoded 1.2.3 afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e.

`Cargo.lock` locks `url` 2.5.8, which RUSTSEC-2026-0592 flags:
`Url::origin()` recurses once per nested `blob:` prefix, so a crafted
URL overflows the stack and aborts the process. The advisory lists
2.5.9 as the first patched release.

This changes only the lockfile. `url` moves from 2.5.8 to 2.5.9, and
`form_urlencoded` from 1.2.2 to 1.2.3, the version `url` 2.5.9
requires. `url` is transitive, and every dependent accepts a
compatible range, so `Cargo.toml`, the feature set and the 1.95
toolchain are unchanged. No advisory ignore is added.

`cargo metadata --locked`, `cargo tree -i [email protected] --locked` and
`cargo deny check advisories` pass. This clears the cargo-deny failure
that blocks #11365; the separate warning for yanked `libsais-rs` 0.2.2
remains.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-actions github-actions Bot added A-deps Dependency updates bug Something isn't working labels Nov 22, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Nov 22, 2026
BubbleCal added a commit that referenced this pull request Nov 22, 2026
Reuse the root lockfile fix from #11370 and apply the same package updates to Python and JNI for RUSTSEC-2026-0592.
Integrate main c76f845 (beta.27)
so the dependency fix is up to date with the base branch. The merge
keeps main's workspace version bumps and retains the two-entry
lockfile update: url 2.5.9 and form_urlencoded 1.2.3.
@lance-gatekeeper lance-gatekeeper Bot removed the K-changes Latest Gatekeeper recommendation requests changes. label Nov 22, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

The dependency-age concern has cleared: both releases now exceed 48 hours. The focused lockfile update addresses RUSTSEC-2026-0592, and I found no remaining blocker.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 22, 2026
@Xuanwo
Xuanwo merged commit b809acc into main Nov 22, 2026
34 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/update-url-form-urlencoded-lock branch November 22, 2026 23:30
Xuanwo added a commit that referenced this pull request Nov 23, 2026
`ObjectStoreRegistry` keeps the scoped storage-options accessor alive in
both its `active_stores` and `building` maps. For a provider-backed
accessor (namespace create), that accessor owns the namespace client and
its session, which owns the same registry, so dropping the table and
connection cannot release either. Weak store values and periodic pruning
do not break the cycle. This blocks the valid empty nested-namespace
create in lancedb/lancedb-c#151 (`79f8f56`, `tests/test_table.cpp:604`).

Both maps now share a private key that stores the already resolved
scoped `accessor_id()` instead of the accessor `Arc`; the full params
still drive construction and refresh. Cache identity for the
base/provider/wrapper, metrics prefix, scheduler mode and validation,
and singleflight/retry behavior are unchanged.

The added regression uses the local file provider and an options
provider that holds the same registry. It fails on `f9fd19e` with `the
object store cache retained the storage options provider` and passes
with this change.

## Verification

On sophon-blob, exact `f2d3971`:

`cargo test -p lance-io --lib --profile ci
test_cache_does_not_retain_storage_options_provider -- --nocapture`

```
1 passed; 0 failed
```

The same test binary ran `object_store::providers::tests`: 21 passed, 0
failed, including the base-scoped options, cache statistics, pruning,
and singleflight/retry tests.

The same regression on parent `f9fd19e` fails with the retention
assertion. `cargo fmt --all -- --check`, `git diff --check`, and `cargo
metadata --locked --no-deps` passed.

Hosted Clippy, rustdoc, MSRV, Linux, macOS, Windows, Python, Java, and
compatibility checks passed on `f2d3971`. The dependency check fails on
RUSTSEC-2026-0592 in the `url 2.5.8` already locked on `main`. The same
check reports the `libsais-rs 0.2.2` yank as a warning. #11370 updates
the root lock to the patched release.
BubbleCal added a commit that referenced this pull request Nov 23, 2026
## Changes

Configure read, write, delete, and list AIMD controllers independently.
Each field takes the category storage option, category environment
variable, generic storage option, generic environment variable, then the
provider default, in that order. The generic burst and retry settings
still apply to every category.

Raise the read ceiling to 11,000 requests/s for general-purpose S3
buckets using the built-in Amazon S3 client and default AWS endpoint.
The read controller starts at 2,000 requests/s and increases by 300
requests/s per success window. The write, delete, and list controllers
use a 10,000 requests/s ceiling. The higher read ceiling follows the
published S3 capacity guidance. [AWS
announcement](https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-s3-increases-read-request-rate/)

Recognize a bodyless HTTP 503 even when the underlying object_store
client has no retries. A live S3 503 escaped the baseline AIMD wrapper
during the sweep. The regression test verifies that the wrapper retries
a bodyless S3 HEAD failure.

## Historical AWS measurements

Same-region general-purpose S3 from an x86_64 c8i.8xlarge in us-east-1.
The baseline was `f9fd19ed` and the measured feature build was
`6914cbe6`, both using Rust 1.98.1, release-no-lto, and the native
Amazon S3 provider. The figures describe those two builds. CI is
validating the updated head `4f70dbdf`, whose base includes the upstream
`url` 2.5.9 fix. The fixed synthetic fixture used 128 objects of 4 MiB
each. The AIMD comparison used 4 KiB range reads, 1,024 in-flight
operations per process, and 55-second runs from cold client processes.
Single-process values use two runs per build in alternating order. The
two-process comparison ran one pair per build.

| Scenario / metric | Measured baseline `f9fd19ed` | Measured feature
build `6914cbe6` | Observed ratio |
| --- | ---: | ---: | ---: |
| Single process, first 30 s throughput (higher is better) | 6,307 req/s
| 6,346 req/s | 1.006x |
| Single process, final 15 s throughput (higher is better) | 10,000
req/s | 11,000 req/s | 1.100x |
| Single process, final 15 s median per-second P99 (lower is better) |
136.2 ms | 125.0 ms | 1.089x |
| Two processes, final 15 s throughput (higher is better) | 20,001 req/s
| 22,001 req/s | 1.100x |

The open-loop GET and HEAD ramps reached 29.9–30.0k successful
requests/s for both grouped and 24-bit distributed layouts, with zero
HTTP 503 responses. The hottest single-object trial reached 46.6k
successful requests/s during its top step. The baseline 14k sweep saw
two isolated HTTP 503 responses. The measured feature build's separate
hot-object stress trial saw two HTTP 503 responses and zero escaped
throttle errors. That stress trial also saw one independent HTTP 500.

## Sophon impact

The AIMD budget is per process and per bucket/store configuration.
Separate PEs can send overlapping traffic to one S3 prefix. The
dual-process trial measured that composition on one host. Tiered cache
hits serve from the cache, and origin reads can use the new ceiling. Job
Framework's generic retry settings keep their existing meaning.

Keep the 64-slot I/O default. The 8-scheduler, 1 MiB random-read case
delivered 1,636 MiB/s at 64 slots and 1,305 MiB/s at 128 slots. Peak
process RSS was 850 MiB and 1,555 MiB, respectively. Values are medians
of three runs. This exercises the Lance scheduler and serves as a PE
concurrency model. Sophon's fallback buffer budget and fragment
readahead grow with the I/O slot count.

## Validation

Added coverage for config precedence, provider defaults, and the S3 HEAD
retry regression. Local formatting and diff checks passed. Rust
correctness checks run in GitHub CI. The branch now includes the
upstream fix for RUSTSEC-2026-0592. Checks on `4f70dbdf` are pending.
[Dependency fix](#11370)
Xuanwo pushed a commit that referenced this pull request Nov 24, 2026
#11370 moved the root `Cargo.lock` to `url` 2.5.9 for
[RUSTSEC-2026-0592](https://rustsec.org/advisories/RUSTSEC-2026-0592),
but `python/Cargo.lock` and `java/lance-jni/Cargo.lock` still lock
2.5.8. Those two lockfiles are outside the workspace, so `cargo-deny`
never sees them, yet they are what the pylance wheels and the Java JNI
library are built from (`java-publish.yml` runs `cargo build --release
--locked`). Both graphs include `opendal-http-transport-reqwest`, which
calls `Url::origin()` on redirect targets, the function the advisory is
about.

This bumps `url` to 2.5.9 and `form_urlencoded` to 1.2.3 in those two
lockfiles, matching the root. Lockfile-only; no `Cargo.toml` requirement
moves.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Dependency updates bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants