CVE-2026-55618
Hidden URLs rejected due to improper HTML entity validation in eml_parser < 3.0.2.
- CVSS 6.5
- CWE-116
- Input Validation and Sanitization
- Remote
eml_parser serves as a python module for parsing eml files and returning various information found in the e-mail as well as computed information. Prior to 3.0.2, the clean_found_uri function in eml_parser/parser.py validates potential URL strings before unescaping HTML entities used for colon, slash, or period characters. Valid encoded URLs and their host names are therefore rejected and omitted from the extracted URL and domain lists. Email security gateways and SOC pipelines that use those lists as indicators of compromise may fail to submit the hidden URLs to threat intelligence feeds, reputation services, or sandboxes, allowing malicious links to bypass inspection. This issue is fixed in version 3.0.2.
- CWE
- CWE-116
- CVSS base score
- 6.5
- Published
- 2026-08-25
- OWASP
- A04 Insecure Design
- Orthogonal defect classification
- Checking
- Code defect classification
- Incorrect Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- eml_parser
- Fixed by upgrading
- Yes
Solution
Upgrade eml_parser to version 3.0.2 or later.
Vulnerable code sample
import re
import html
def clean_found_uri(uri: str) -> str | None:
"""
Validate and normalize a URI extracted from an email.
Returns the cleaned URI or None if it is considered invalid.
"""
# VULNERABLE: validation runs before HTML entity unescaping, dropping encoded URLs
if not re.match(r'^[a-zA-Z][a-zA-Z0-9+.-]*://', uri):
return None
# Unescape HTML entities for colon, slash, period after validation
uri = html.unescape(uri)
return uriPatched code sample
import re
import html
def clean_found_uri(uri: str) -> str | None:
"""
Validate and normalize a URI extracted from an email.
Returns the cleaned URI or None if it is considered invalid.
"""
# FIX: unescape HTML entities before validation so encoded URLs are accepted
uri = html.unescape(uri)
if not re.match(r'^[a-zA-Z][a-zA-Z0-9+.-]*://', uri):
return None
return uriPublished fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- Address security advisories (#90) (GOVCERT-LU/eml_parser)
eml_parser/parser.py · CustomPolicy.header_fetch_parse,eml_parser/parser.py · EmlParser.clean_found_uri,eml_parser/parser.py · EmlParser.parse_email,eml_parser/parser.py · EmlParser.__init__,eml_parser/regexes.py,eml_parser/routing.py · noparenthesis
Cite this entry
@misc{vaitp:cve202655618,
title = {{Hidden URLs rejected due to improper HTML entity validation in eml_parser < 3.0.2.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-55618},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-55618/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
