GHSA-v86m-j5f7-ccwh: Passbolt Api E-mail HTML injection
4.4
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/20/2024
Updated
5/20/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| passbolt/passbolt_api | composer | < 2.7.0 | 2.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper HTML escaping in email content. The commit shows:
- Removal of HTMLPurifier dependency and replacement with htmlspecialchars
- Critical change in Purifier::clean() from HTMLPurifier-based sanitization to basic HTML entity encoding
- Removal of 'nohtml' parameter in UserAgentsTable.php that previously limited sanitization
These changes indicate the original Purifier::clean() function failed to properly neutralize HTML in user-controlled fields like password descriptions when generating emails, allowing img tag injection. The high confidence comes from the direct correlation between the patch (switching to htmlspecialchars) and the vulnerability type (HTML injection).