CVE-2023-2591: teampass vulnerable to code injection
7.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51253%
CWE
Published
5/9/2023
Updated
11/11/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| nilsteampassnet/teampass | composer | < 3.0.7 | 3.0.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The key vulnerability stemmed from improper input sanitization in the label field handling. The commit diff shows the label field's DOMPurify.sanitize() call was initially missing strict HTML profile restrictions (html:true was implicitly allowed). This allowed attackers to inject malicious HTML/scripts. The patch explicitly disables HTML parsing in DOMPurify's configuration, confirming the original function's parameters were the root cause. The function's presence in the data processing flow for item labels directly matches the vulnerability's attack vector described in CWE-79 and CWE-94.