Stored cross-site scripting (XSS) vulnerability in pgAdmin 4 Browser Tree and Explain Visualizer modules.
User-controlled PostgreSQL object names (database, schema, table, column, etc.) were assigned to DOM elements via innerHTML, allowing crafted object names containing HTML markup to execute attacker-supplied JavaScript in the browser of any pgAdmin user who navigated to or executed EXPLAIN over the malicious object.
Fix replaces innerHTML with textContent.
This issue affects pgAdmin 4: before 9.15.
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
CVSS Score: 4.8
Authenticated pgAdmin user with INSERT/CREATE privileges on a database object whose name a victim views in pgAdmin's Browser Tree or Explain output. PR:H reflects that planting the malicious object name requires DDL privileges in addition to a pgAdmin login.
| Attack Vector |
Network |
Scope |
Changed |
| Attack Complexity |
Low |
Confidentiality Impact |
Low |
| Privileges Required |
High |
Integrity Impact |
Low |
| User Interaction |
Required |
Availability Impact |
None |
Authenticated pgAdmin user with INSERT/CREATE privileges on a database object whose name a victim views in pgAdmin's Browser Tree or Explain output. PR:H reflects that planting the malicious object name requires DDL privileges in addition to a pgAdmin login.
CVSS 3.1
CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
CVSS Score: 4.8
Authenticated pgAdmin user with INSERT/CREATE privileges on a database object whose name a victim views in pgAdmin's Browser Tree or Explain output. PR:H reflects that planting the malicious object name requires DDL privileges in addition to a pgAdmin login.
| Exploitability Metrics |
Vulnerable System Impact Metrics |
Subsequent System Impact Metrics |
| Attack Vector |
Network |
Confidentiality |
Low |
Confidentiality |
Low |
| Attack Complexity |
Low |
Integrity |
Low |
Integrity |
Low |
| Attack Requirements |
None |
Availability |
None |
Availability |
None |
| Privileges Required |
High |
| User Interaction |
Passive |
Authenticated pgAdmin user with INSERT/CREATE privileges on a database object whose name a victim views in pgAdmin's Browser Tree or Explain output. PR:H reflects that planting the malicious object name requires DDL privileges in addition to a pgAdmin login.
CVSS 4.0