CRITICAL9.8
PYSEC-2026-522
ReportLab vulnerable to remote code execution via paraparser
Quick fix
PYSEC-2026-522 — reportlab: upgrade to the fixed version with the command below.
pip install --upgrade 'reportlab>=3.5.31'Details
paraparser in ReportLab before 3.5.31 allows remote code execution because start_unichar in paraparser.py evaluates untrusted user input in a unichar element in a crafted XML document with '<unichar code="' followed by arbitrary Python code, a similar issue to CVE-2019-17626.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-19450[ADVISORY]
- https://github.com/MrBitBucket/reportlab-mirror/blob/master/CHANGES.md[WEB]
- https://github.com/MrBitBucket/reportlab-mirror/blob/master/CHANGES.md#release-353115102019[WEB]
- https://hg.reportlab.com/hg-public/reportlab[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2023/09/msg00037.html[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CHMCB2GJQKFMGVO5RWHN222NQL5XYPHZ[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HADPTB3SBU7IVRMDK7OL6WSQRU5AFWDZ[WEB]
- https://pastebin.com/5MicRrr4[WEB]
- https://pypi.org/project/reportlab[PACKAGE]
- https://github.com/advisories/GHSA-pj98-2xf6-cff5[ADVISORY]