CVE-2019-17626
XML Injection in ReportLab
Also known as GHSA-qpg2-vx7j-3869, PYSEC-2019-117
Mitigation
- Upgrade reportlab to 3.5.28 or later.
Who should check
- Projects that depend on PyPI package reportlab (< 3.5.28)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running reportlab <= 3.5.26
Vulnerability facts
- Affected
- reportlab < 3.5.28
- Fixed in
- 3.5.28
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 9.53% chance of exploitation in 30 days (percentile 96, 2026-11-26)
- CWE
- CWE-91
- Modified
Description
ReportLab through 3.5.26 allows remote code execution because of toColor(eval(arg)) in colors.py, as demonstrated by a crafted XML document with '<span color="' followed by arbitrary Python code.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-17626. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-17626.md Affected: reportlab < 3.5.28 Fixed in: 3.5.28 Steps: 1. Search this machine and project for reportlab (PyPI), n/a, reportlab: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/errata/RHSA-2020:0197
- https://access.redhat.com/errata/RHSA-2020:0195
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL/
- https://access.redhat.com/errata/RHSA-2020:0230
- https://access.redhat.com/errata/RHSA-2020:0201
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM/
- http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00002.html
- https://usn.ubuntu.com/4273-1/
- https://www.debian.org/security/2020/dsa-4663
- https://security.gentoo.org/glsa/202007-35
- https://nvd.nist.gov/vuln/detail/CVE-2019-17626
- https://github.com/advisories/GHSA-qpg2-vx7j-3869
Exploits and PoCs
Other
- https://bitbucket.org/rptlab/reportlab/src/default/CHANGES.md
- https://lists.debian.org/debian-lts-announce/2020/02/msg00019.html
- https://security.netapp.com/advisory/ntap-20240719-0006/
- https://web.archive.org/web/20191016111823/https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code
- https://usn.ubuntu.com/4273-1
- https://security.netapp.com/advisory/ntap-20240719-0006
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM
- https://hg.reportlab.com/hg-public/reportlab/rev/51a521ad7dd3
- https://github.com/pypa/advisory-database/tree/main/vulns/reportlab/PYSEC-2019-117.yaml
- https://github.com/MrBitBucket/reportlab-mirror
- https://access.redhat.com/security/cve/cve-2019-17626
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM/
FAQ
Is CVE-2019-17626 being exploited?
There is no confirmed exploitation: CVE-2019-17626 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 9.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-17626?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2019-17626?
reportlab < 3.5.28.
Is there a fix for CVE-2019-17626?
Yes. Fixed in 3.5.28. Upgrade reportlab to 3.5.28 or later.
How do I check if I'm affected by CVE-2019-17626?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.