CVE-2021-29625: XSS in doc_link
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98652%
CWE
Published
3/18/2022
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
vrana/adminer | composer | >= 4.7.8, < 4.8.1 | 4.8.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit 4043092 explicitly patches the doc_link
function in editing.inc.php
by adding HTML escaping (h()
) to the URL construction. The vulnerability occurs because user-controlled database error messages or other inputs could influence the $paths
parameter, and the lack of escaping in the href attribute allowed JavaScript injection. The patch confirms the function's role in the XSS vulnerability.