Repository navigation
chore(deps): pin WeasyPrint 70.0 in the PDF toolchain - #2471
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
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.ymland.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_fetcherbypass inwrite_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-pdfis keyed on the script's hash, so the bump rebuilds it. A localbuild/doc-pdf/weasyprintis 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
build/doc-pdf/weasyprint(WeasyPrint version 70.0).OPENSYSML_REQUIRE_PDF_TOOLCHAIN=1 go test -count=1 -run Installed ./internal/doc/docpdfwith 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.pypass.actionlintreports only two shellcheck notes on lines this change does not touch.make testandmake lintwere not run locally.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogImplemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop