# CVE-2024-1647: pyhtml2pdf 0.0.6 - Local File Read via Server Side XSS

- Severity: High 7.5 (CVSS:3.1, scored by Fluid Attacks) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-19T23:59:17.082Z
- Modified: 2026-06-17T07:04:42.040Z
- Also known as: GHSA-p3rv-qj56-2fqx, PYSEC-2024-301
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Fluid Attacks

## Description

Pyhtml2pdf version 0.0.6 allows an external attacker to remotely obtain

arbitrary local files. This is possible because the application does not

validate the HTML content entered by the user.

(As written by CVE List.)

## Affected

- pyhtml2pdf: 0.0.6
- pyhtml2pdf_project pyhtml2pdf: 00.0.6
- pyhtml2pdf (PyPI): up to 0.0.6
- kumaf pyhtml2pdf: 0.0.6

## Every score

- Fluid Attacks: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://fluidattacks.com/advisories/oliver/> (exploit, evidence, third-party-advisory)
- <https://pypi.org/project/pyhtml2pdf/> (package, product)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1647> (advisory)
- <https://fluidattacks.com/advisories/oliver> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyhtml2pdf/PYSEC-2024-301.yaml> (web)
- <https://pypi.org/project/pyhtml2pdf> (web)
- <https://github.com/advisories/GHSA-p3rv-qj56-2fqx> (advisory)

## Sources

- CVE List: [CVE-2024-1647](https://www.cve.org/CVERecord?id=CVE-2024-1647), CVE Terms of Use, modified 2025-12-03
- GitHub Advisory Database: [GHSA-p3rv-qj56-2fqx](https://github.com/advisories/GHSA-p3rv-qj56-2fqx), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2024-1647](https://nvd.nist.gov/vuln/detail/CVE-2024-1647), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-301](https://osv.dev/vulnerability/PYSEC-2024-301), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-1647 · Whole record: https://cve.day/CVE-2024-1647.json · Rebuilt by cve.day 2026-11-25T22:58:36.907Z
