CVE-2021-4303: Xataface vulnerable to Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.20917%
CWE
Published
1/5/2023
Updated
10/20/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| xataface/xataface | composer | < 3.0.0 | 3.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows both functions were vulnerable due to: 1) Use of eval() with unvalidated server responses (XSS payload vector), 2) innerHTML assignment instead of text-safe innerText. The vulnerability description explicitly mentions testftp, but the identical pattern in testdb was also patched. The XSS occurs because eval() could execute arbitrary JS from server responses, and innerHTML would render HTML/JS content.