Description
Poppler pdftohtml through 26.11.0 contains a cross-site scripting vulnerability in HtmlLink::getLinkStart() in utils/HtmlLinks.cc that writes PDF link annotation URIs into href attributes without escaping in HTML output modes. Attackers can craft a PDF whose /URI entry contains a double quote followed by HTML markup or event handlers to execute script in browsers viewing the generated HTML.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| freedesktop | poppler | ≤ 26.11.0 | — |
References
- https://gitlab.freedesktop.org/poppler/poppler/-/work_items/1851 issue-tracking
- https://gitlab.freedesktop.org/poppler/poppler/-/blob/poppler-26.11.0/utils/HtmlLinks.cc#L114-121 technical-description
- VulnCheck Advisory: Poppler pdftohtml through 26.11.0 XSS via Unescaped Link Annotation URIs third-party-advisory