Skip to content

fix(deps): update pin-project-lite and DOMPurify - #6222

Merged
elezar merged 2 commits into
ai-openshell:mainfrom
alangou:fix/dependency-maintenance-20261204/alangou
Dec 4, 2026
Merged

elezar merged 2 commits into
ai-openshell:mainfrom
alangou:fix/dependency-maintenance-20261204/alangou

Conversation

@alangou

@alangou alangou commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update two dependencies. The Rust update fixes a pin-safety bug across all 14 workspaces. The Mermaid documentation linter update fixes two ways template expressions could survive sanitization when the output was parsed again.

Related Issue

No covering issue. The fixes address the upstream reports linked below.

Changes

  • cd0a2c3e7 updates pin-project-lite from 0.2.17 to 0.2.19 in all 14 Cargo lockfiles. Upstream yanked 0.2.17 and 0.2.18. The macro now rejects combining project_replace with PinnedDrop, which could violate Rust’s pinning drop guarantee. Upstream release
  • d152ca75c updates the DOMPurify override and npm lockfile in scripts/lint-mermaid from 3.4.17 to 3.5.0. Mermaid 12.2.0 accepts this version. The initial 3.4.18 candidate still reproduced the nested-form bypass. First advisory · Second advisory
  • Both updates required only dependency files. The sole Cargo advisory exception remains RUSTSEC-2026-0543 for unmaintained chrono 0.4.45. Eight lockfiles still resolve it. Current oauth2 5.0.0 and quick-junit 0.8.0 require it, and RustSec lists no patch. Remove the exception once all covered workspaces resolve without an affected version and pass validation. RustSec advisory

Release Notes

Testing

Tested against upstream base 34fc27738b50d0305342005bb83af40d687edd42 with final head d152ca75ceae46ab31acde08383ea75ce43461ac.

  • All 14 Cargo lockfiles passed locked metadata checks and the seven required alignments. The root rust:deny task passed its nine crypto policy tests and all policy categories. The 13 independent advisory scans passed. The yank warning cleared everywhere. RustSec database revision 7a3b44c6877a878e00632e8177af5636e07403ee was current at scan time. The root scan still emits duplicate-version and unused-wrapper warnings, and the configured unmaintained-crate scope reports the transitive chrono advisory as undetected.

  • A compile-only reproduction verified that 0.2.17 accepted both invalid declarations from upstream’s regression test and 0.2.19 rejected them. Valid controls compiled with both versions.

  • The Mermaid task installed the npm lockfile and validated diagrams across 207 Markdown and MDX files. npm ls confirmed DOMPurify 3.5.0 under Mermaid 12.2.0. npm audit reported zero vulnerabilities. In jsdom, reparsing restored an inert template marker with 3.4.17 and 3.4.18 in all three upstream output modes. With 3.5.0, the marker stayed removed and the ordinary HTML control was preserved.

  • The full Rust format, compile and Clippy tasks passed, including the standalone Cargo workspaces covered by Clippy. Both CLI/gateway policy integration tests passed over loopback mutual TLS with an isolated SQLite database.

  • mise run test:rust passed the experimental workspace and server suites, independent crypto backend, five standalone nextest suites and conformance program checks. The separate PostgreSQL lane passed all 49 selected tests against a disposable PostgreSQL 17.10 instance.

  • The current PR workflow uses the head SHA on the label event. Applying test:e2e started attempt 1 for d152ca75c. Metadata resolution passed and the core E2E bundle and conformance builds started. Live E2E run

  • Checks appropriate to the affected code and behavior pass locally

  • Unit tests added or updated (dependency-only change)

  • E2E tests added or updated (existing suites cover the consumers)

Checklist

  • Follows Conventional Commits
  • Both commits are signed and carry DCO sign-offs
  • Architecture docs updated (dependency-only change)

Replace the yanked 0.2.17 release in all 14 Cargo workspaces. Version 0.2.19 rejects combining project_replace with PinnedDrop, which could violate the pinning drop guarantee.

Signed-off-by: Adrien Langou <alangou@nvidia.com>
Pin DOMPurify 3.5.0 to cover GHSA-qm7q-q8h9-jg8q and GHSA-hrxw-jjj6-2g2j. Both affect template expressions in reparsed markup. The first patch on the 3.4 line leaves the second advisory open.

Signed-off-by: Adrien Langou <alangou@nvidia.com>
@alangou alangou added topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:documentation Architecture docs, READMEs, project website updates, and automated documentation generation. test:e2e Requires end-to-end coverage labels Dec 4, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 4, 2026
@elezar
elezar enabled auto-merge December 4, 2026 08:07
@elezar
elezar added this pull request to the merge queue Dec 4, 2026
Merged via the queue into ai-openshell:main with commit 22c8e35 Dec 4, 2026
359 of 363 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage topic:documentation Architecture docs, READMEs, project website updates, and automated documentation generation. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants