Skip to content

Release v1.7.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 16:08
· 30 commits to main since this release

v1.7.1

Changelog

Security

  • HTML image filter bypass via HTML entities (SSRF / local file read). HtmlImageSanitizer looked for <img before
    decoding entities, while PHPWord decodes them before parsing, so &#60;img src="http://…"/&#62; reached
    Html::parseImage() (file_get_contents() on any URL or stream wrapper, files outside allowed_roots embedded in the
    output). The filter now runs on the same decoded XML PHPWord parses, and an unparsable fragment that contains an image
    is dropped (fail closed). Affects HtmlContent values built from untrusted HTML, 1.5.0–1.7.0 (REQ-SEC-004 re-audit M1,
    CWE-918 / CWE-180).

Changed

  • phpoffice/phpword floor raised to ^1.4 (keeps phpoffice/math 0.2 with GHSA-42hm-pq2f-3r7m out of the tree).

What's Changed

  • fix(security): filter HTML images after entity decoding by @HecFranco in #11

Full Changelog: v1.7.0...v1.7.1