Medium

eml_parser has a URL extraction bypass via HTML entities in URLs

  • Disclosed: 25.08.2026
  • Updated: 11.10.2026 15:18

Summary

eml_parser performs certain validations on potential URL strings to discard bogus values. In versions prior to 3.0.2, this validation was performed before unescaping any HTML entities that might occur in the string. This caused the library to wrongfully reject valid URLs that use HTML entities for the :, /, or . characters. These URLs would then not be included in the list of extracted URLs. Similarly, the host parts of such URLs would not be extracted.

For example, neither the URL https://phishing.example.com nor its host (phishing.example.com) would appear in the parsing result.

Impact

eml_parser is used in email security gateways and SOC pipelines to extract URLs as IOCs. Those URLs are then checked against threat-intel feeds, URL reputation services, and sandboxes. A URL that is not extracted is never checked.

Patches

Since version 3.0.2 the library unescapes all HTML entities in every URL before deciding to accept or reject it. A test was added to prevent regressions.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) eml-parser < 3.0.2 3.0.2

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Weakness (CWE)
CWE-116
Platform
Python (PyPI)
Package
eml-parser
Disclosed
25.08.2026
Updated
11.10.2026 15:18

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-3831 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-fxgq-9m89-cxj9 - CC BY 4.0

Vulnerability history: eml-parser

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
5
First → latest
03.2026 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 4

Disclosures per year

  1. 2026: 5
  1. eml_parser has a URL extraction bypass via HTML entities in URLs this entry
    Medium · 6.5 CVE-2026-55618 < 3.0.2 3.0.2

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.