High

Server-side Request Forgery (SSRF) via img tags in reportlab

  • Disclosed: 18.02.2021
  • Updated: 11.10.2026 11:20

All versions of package reportlab at time of writing are vulnerable to Server-side Request Forgery (SSRF) via img tags. In order to reduce risk, use trustedSchemes & trustedHosts (see in Reportlab's documentation)

Steps to reproduce by Karan Bamal:

  1. Download and install the latest package of reportlab
  2. Go to demos -> odyssey -> dodyssey
  3. In the text file odyssey.txt that needs to be converted to pdf inject <img src="http://127.0.0.1:5000" valign="top"/>
  4. Create a nc listener nc -lp 5000
  5. Run python3 dodyssey.py
  6. You will get a hit on your nc showing we have successfully proceded to send a server side request
  7. dodyssey.py will show error since there is no img file on the url, but we are able to do SSRF

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) reportlab < 3.5.55 3.5.55

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-918
Platform
Python (PyPI)
Package
reportlab
Disclosed
18.02.2021
Updated
11.10.2026 11:20

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2021-146 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-mpvw-25mg-59vx - CC BY 4.0

Vulnerability history: reportlab

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
10.2019 09.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • High 2

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 1
  4. 2022: 0
  5. 2023: 2
  6. 2024: 0
  7. 2025: 0
  8. 2026: 0
  1. Critical · 9.8 CVE-2019-19450 < 3.5.31 3.5.31
  2. High · 7.8 CVE-2023-33733 < 3.6.13 3.6.13
  3. Server-side Request Forgery (SSRF) via img tags in reportlab this entry
    High · 6.5 CVE-2020-28463 < 3.5.55 3.5.55
  4. Critical · 9.8 CVE-2019-17626 < 3.5.28 3.5.28

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.