CVE-2022-1571: Cross-site Scripting in FacturaScripts
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53302%
CWE
Published
5/5/2022
Updated
2/1/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 |
---|---|---|---|
facturascripts/facturascripts | composer | <= 2022.06 | 2022.07 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing HTML sanitization in model field processing. The patch adds noHtml()
calls to these fields within the test()
method, indicating they were previously unescaped. The test()
function's role in data validation and preparation for output makes it the logical injection point for XSS payloads. The direct correlation between the vulnerability description (reflected XSS via model fields) and the patched code location confirms this assessment.