Repository navigation
Release v1.5.0
Release v1.5.0: security - HtmlContent images filtered before PHPWord (no SSRF / local file read / temp leak).
Changelog
Security
HtmlContent:<img src>values are filtered before PHPWord parses the HTML. Remote URLs, stream wrappers (php://,phar://,file://, …) and local paths outsideallowed_rootsare dropped, closing SSRF and arbitrary local file reads. Onlydata:image/(png|jpeg|gif|bmp);base64images up tohtml_image_max_bytes(default 5 MiB) and, whenallowed_rootsis configured, existing local files under those roots are kept.HtmlContent: temp files created fordata:images are deleted after each merge (previously leaked one file per image, unbounded in FrankenPHP worker mode).
Added
- Config
html_image_max_bytes(default5242880): maximum decoded size of onedata:image insideHtmlContent.
Fixed
listVariables()derives the conditional-marker filter from the configuredconditional_if_opening/conditional_endif_opening(andmacro_opening) instead of hard-coding#if/#endif, so custom conditional delimiters no longer show up as variables.
Documentation
docs/CONFIGURATION.mdand the reference/recipe YAML now documentallowed_roots,path_allowlist_requiredandhtml_image_max_bytes.
Full Changelog: v1.4.3...v1.5.0