chore(deps): document ttf-parser migration decision (RUSTSEC-2026-0192)#900
Merged
Conversation
ttf-parser is flagged unmaintained (RUSTSEC-2026-0192, informational). This records the evidence-based decision to keep waiting rather than migrate now, and corrects the suppression's inaccurate "cmap only" justification. Findings: - ttf-parser is a DIRECT dependency (~29 call sites: cmap, glyph outlines, metrics, name records — core font parsing + the render outline path), not transitive-only. - It also reaches the tree via fontdb (system-fonts) and via imageproc -> ab_glyph -> owned_ttf_parser (ml). No upgrade of fontdb 0.23, ab_glyph 0.2.32, or imageproc 0.27 removes it — none has a fontations (skrifa/read-fonts) backend. - Fully clearing the advisory therefore requires porting our direct usage to skrifa AND replacing fontdb + ab_glyph with fontations-based crates — a large, multi-crate migration with real regression risk, disproportionate while the advisory is informational-only. Extend the review horizon and re-evaluate when fontdb/ab_glyph ship a fontations backend, or when the standalone font-stack migration is scheduled. Refs #852 Claude-Session: https://claude.ai/code/session_01QXMiKnxkmFs3tCQNz1vMc5
Open
2 tasks
The ttf-parser/skrifa dep-swap left 3 spaces before the subsetter comment; taplo's TOML format check requires a single space. No dependency change. Claude-Session: https://claude.ai/code/session_01VfT1dvLWaMNh4SpaXV8kcp
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.
Addresses #852 via its sanctioned "documented decision to keep waiting" acceptance path.
Why not migrate now
ttf-parser(RUSTSEC-2026-0192, informational/unmaintained) cannot be removed by a dependency bump. It reaches the tree three independent ways:truetype_parser,truetype_cmap,font_dict,text_rasterizer: embedded-font cmap, glyph outlines, metrics, and name records (core font parsing + the render outline path). (The issue's "transitive-only, cmap-only" framing was inaccurate — corrected here.)Verified against crates.io/docs/rustsec: no combination of upgraded fontdb/ab_glyph/imageproc removes ttf-parser. Fully clearing the advisory requires porting our direct usage to
skrifaand replacing fontdb + ab_glyph with fontations-based crates — a large, multi-crate migration touching core font-parsing and render paths, with real regression risk that is disproportionate while the advisory is informational-only (no CVE, no memory-safety/RCE implication).The fontations successor (
skrifa/read-fonts) is already in our tree (viasubsetter, and viaharfrustonce #851 lands), so the eventual migration has a foothold.Change (docs-only, no code)
osv-scanner.tomlRUSTSEC-2026-0192 justification to reflect the real (three-path) situation and the explicit decision; extendedignoreUntilto 2026-12-31.ttf-parsercomment inCargo.tomland pointed it at the rationale.Acceptance (#852)
Related: #851 (rustybuzz → harfrust) is the companion shaping migration.
https://claude.ai/code/session_01QXMiKnxkmFs3tCQNz1vMc5