Description
TurboDocx html-to-docx through 1.23.1 contains a server-side request forgery vulnerability that allows attackers supplying HTML to make the server fetch internal URLs via img src attributes. Attackers can reference loopback, private, or cloud metadata addresses that bypass the loose isValidUrl() check, and read responses embedded in the generated DOCX word/media folder.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
TurboDocx html-to-docx
Default version status: unaffected
0 to ≤ 1.23.1affected
pkg:npm/%40turbodocx/html-to-docxReferences
- https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/H1t1Bbpjfx ↗
- https://github.com/TurboDocx/html-to-docx/blob/ff08e5687a2c87bcdc182a2e3e130c3493b9fb7e/src/utils/image.js#L286 ↗
- https://github.com/TurboDocx/html-to-docx ↗
- https://www.vulncheck.com/advisories/turbodocx-html-to-docx-through-1.23.1-ssrf-via-img-src-remote-image-download ↗