Skip to content

fix(security): update url to 2.5.9 for RUSTSEC-2026-0592 - #1225

Closed
hyperpolymath wants to merge 1 commit into
mainfrom
fix/security-url-2-5-9-20261123
Closed

hyperpolymath wants to merge 1 commit into
mainfrom
fix/security-url-2-5-9-20261123

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Fix inherited security blocker #1219

Base: current main d158aed87f76b93e4f291e995bef9f26559c7fb2.
Scope: only tool-generated root Cargo.lock. No Cargo.toml, source, policy, audit allowlist or workflow edits; no security warnings suppressed.

Root cause and repair

Hypatia's existing Cargo.lock resolved url 2.5.8, affected by RUSTSEC-2026-0592 (stack overflow in Url::origin() with deeply nested blob: URL origins). This was present on main before review PRs #1216/#1220.

Executed Windows Cargo 1.99.1 with a separate freshly cloned, exact-main checkout:

cargo update --manifest-path <isolated-hypatia-main>/Cargo.toml -p url --precise 2.5.9
cargo metadata --manifest-path <isolated-hypatia-main>/Cargo.toml --no-deps --locked --format-version 1

The tool-generated lockfile's bytes were compared against the live main lockfile. Exactly four lines changed:

  • url 2.5.8 → 2.5.9, including registry checksum.
  • Its transitive form_urlencoded 1.2.2 → 1.2.3, including registry checksum.

Provenance: original Git blob 30d41a9fb72dfdfcbd4f73398649e7f2ccf4cb5c; generated lock blob d8c0f251afd6bea8ec7b4f48983eb58d1bba4234. No hand-edited package entries. The exact generated content was committed through GitHub's file API after a four-line diff check.

Verification and blocking acceptance

The original Windows shallow clone had a case-colliding DEED test fixture on NTFS; that fixture was not included in this PR, which modifies Cargo.lock alone. Windows host did not execute the full Rust workspace tests. The separate Rust CI run 45150576680 has passed on GitHub's Linux runner; the main CI and E2E gates remain independently required. This PR remains draft pending all required checks and human review.

Fixes #1219 only after security CI and merge.

@gitnotebooks

gitnotebooks Bot commented Nov 23, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/hypatia/pull/1225

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 931f2ffd-3581-4fd4-8611-a8f92a3e4013

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@linear-code
linear-code Bot marked this pull request as ready for review November 23, 2026 09:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T11:47:44.497031Z fa85b0c Draft marked ready
🔒 Security Review ✅ Completed 2026-11-23T11:49:31.209015Z fa85b0c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as draft November 23, 2026 09:52
@hyperpolymath
hyperpolymath marked this pull request as ready for review November 23, 2026 11:45
hyperpolymath pushed a commit that referenced this pull request Nov 24, 2026
The Security workflow's cargo audit and cargo deny (advisories) fail on
main and on this branch: url 2.5.8 has a stack overflow in
Url::origin() on nested blob: URLs (RUSTSEC-2026-0592). This is the
same Cargo.lock change as #1225 (cargo update -p url --precise 2.5.9,
which also moves form_urlencoded 1.2.2 -> 1.2.3); it is a no-op once
#1225 lands on main.

Local: cargo deny check before: advisories FAILED; after: advisories,
bans, licenses, sources ok. cargo audit: 0 vulnerabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg
hyperpolymath pushed a commit that referenced this pull request Nov 24, 2026
Security's cargo audit and cargo deny fail on main and here: url 2.5.8
carries RUSTSEC-2026-0592. Same Cargo.lock as #1225 and as f8332b4 on
#1195 (cargo update -p url --precise 2.5.9); a no-op once #1225 lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg
hyperpolymath pushed a commit that referenced this pull request Nov 24, 2026
Security's cargo audit and cargo deny fail on main and here: url 2.5.8
carries RUSTSEC-2026-0592. Same Cargo.lock as #1225 and as f8332b4 on
#1195 (cargo update -p url --precise 2.5.9); a no-op once #1225 lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg
(cherry picked from commit 5c6cb7b)
hyperpolymath pushed a commit that referenced this pull request Nov 24, 2026
Security's cargo audit and cargo deny fail on main and here: url 2.5.8
carries RUSTSEC-2026-0592. Same Cargo.lock as #1225 and as f8332b4 on
#1195 (cargo update -p url --precise 2.5.9); a no-op once #1225 lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg
(cherry picked from commit 5c6cb7b)
hyperpolymath added a commit that referenced this pull request Nov 25, 2026
#1234)

> [!WARNING]
> **Unsigned commits.** a11ab23, 947f535 and d695797 are unsigned (`git
log --format=%G?` gives `N`). The managed signing tool was inactive in
this session. The owner's ruling requires them to be re-signed (status
`G`) before any merge.

## Summary

This adds `docs/status/ROADMAP.adoc` with the dated section "Position
2026-11-18", which the hub checkpoint asked for. It records the
following for the proof-policy and drift review thread:

- what the thread did;
- the PRs that merged;
- the PRs still open, including #1185 and its three
CodeRabbit threads;
- the owner decisions it is waiting on (Agda pin, knot-knot docs format,
P8 grade on #1185);
- the next steps.

The file did not exist before, so this PR creates it.

To get CI green, the branch also carries:

- a merge of `main` (687c7ab);
- a cherry-pick of fa85b0c from #1225 (947f535), which bumps `url` to
2.5.9 and `form_urlencoded` to 1.2.3 in `Cargo.lock` for
RUSTSEC-2026-0592. Once #1225 merges, this change does nothing.

d695797 names `scripts/check-proofs.sh` in
hyperpolymath/rsr-template-repo in the roadmap's next steps, as
CodeRabbit asked.

## Evidence

- `git diff --stat origin/main..HEAD`: `docs/status/ROADMAP.adoc` and
`Cargo.lock` only.
- cargo-deny 0.22.1, `cargo deny check` on 947f535: `advisories ok, bans
ok, licenses ok, sources ok`.
- CI on 947f535: every check passed or was skipped, none failed,
including the six that had failed on a11ab23.
- No code, tests or proofs change, so I ran no test suite.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_0165rGu3tsKmJtevmrdMVyfJ

---------

Co-authored-by: Claude <noreply@anthropic.com>

Copy link
Copy Markdown
Owner Author

Superseded by #1224: byte-identical Cargo.lock change (url 2.5.9, form_urlencoded 1.2.3, RUSTSEC-2026-0592), opened five minutes earlier. Keeping #1224 as the single fix; closing this one as a duplicate.


Generated by Claude Code

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.

security: resolve RUSTSEC-2026-0592 in url 2.5.8 without bypassing Rust audit gates

2 participants