Skip to content

chore(deps): pin WeasyPrint 70.0 in the PDF toolchain - #2471

Merged
HuiJun merged 1 commit into
developfrom
chore/weasyprint-70
Nov 21, 2026
Merged

HuiJun merged 1 commit into
developfrom
chore/weasyprint-70

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Part of #2452.

The PDF toolchain pins WeasyPrint 69.0 in three places: scripts/download-doc-pdf-toolchain.sh (WEASYPRINT_VERSION), and the wheel caches in .github/workflows/pr.yml and .github/workflows/pip-cache.yml. Upstream advisory GHSA-r543-q48m-4c9j (CVE-2026-106443, high) covers every version up to 69.0: an EPS image reaches the Ghostscript interpreter and can run code. It is fixed in 70.0, the current release, and all three pins move there.

GHSA-jf6q-chmf-3h3v (CVE-2026-55073, a url_fetcher bypass in write_pdf()) also names versions up to 69.0, but the advisory lists no patched version, so this change does not claim to fix it.

The CI cache of build/doc-pdf is keyed on the script's hash, so the bump rebuilds it. A local build/doc-pdf/weasyprint is kept as it is by the script ("already present"); remove that directory and run the script again to move to 70.0.

How it was verified

  • Provisioned 70.0 with the script into a fresh build/doc-pdf/weasyprint (WeasyPrint version 70.0).
  • OPENSYSML_REQUIRE_PDF_TOOLCHAIN=1 go test -count=1 -run Installed ./internal/doc/docpdf with every converter variable set, which is how the PDF toolchain job runs them: passes on 69.0 before the change and on 70.0 after it, with no expectation changed.
  • go test -count=1 ./tests/hygiene, scripts/changelog.py check, scripts/check-doc-ids.py pass. actionlint reports only two shellcheck notes on lines this change does not touch.
  • The full make test and make lint were not run locally.

Checklist

  • make test and make lint pass locally
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (compliance rows need nothing: the census is counted at docs build)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Quality Assurance opened this PR for Jason
Implemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop


Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@HuiJun
HuiJun added this pull request to the merge queue Nov 21, 2026
Merged via the queue into develop with commit 4b24274 Nov 21, 2026
51 of 76 checks passed
@HuiJun
HuiJun deleted the chore/weasyprint-70 branch November 21, 2026 04:34
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.

1 participant