GHSA-4v7v-7v7r-3r5h

Suggest an improvement
Source
https://github.com/advisories/GHSA-4v7v-7v7r-3r5h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-4v7v-7v7r-3r5h/GHSA-4v7v-7v7r-3r5h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4v7v-7v7r-3r5h
Aliases
Published
2026-02-02T18:17:33Z
Modified
2026-02-03T17:51:21Z
Severity
  • 8.0 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
FacturaScripts has Stored Cross-Site Scripting (XSS) in "Observations" field via History View
Details

Summary

A Stored Cross-Site Scripting (XSS) vulnerability was discovered in the Observations field. The flaw occurs in the History view, where historical data is rendered without proper HTML entity encoding. This allows an attacker to execute arbitrary JavaScript in the browser of viewing the history by administrators.

Details

When an administrator views the History tab of that specific note, the script executes in their browser session.

PoC

  1. Log in as a regular user.

  2. Open "Sales"=>"Customers"=> "Delivery Notes" image

  3. Chose one of the customer or create the new one.

  4. Open "Delivery notes" image

  5. Create a new Delivery Note or edit an existing one. Fill the "Number 2" field with any value and save. image image

  6. In the Observations field, enter the malicious JavaScript and save it again. image image

  7. Now we have record in "History" tab. image

  8. Logout and login as admin. Next go to the "History" tab with malicious code: image image image image image

Result: Upon opening the history record, the onerror event triggers, executing the JavaScript and displaying an alert box with the application's origin.

Impact

Change admin password via XSS: image image image image Admin password was changed image

This vulnerability results in a Critical Full Account Takeover, allowing any user with note-editing permissions to seize control of the admin account. It successfully bypasses CSRF protections and exploits the lack of "current password" verification during credential changes. Once compromised, the attacker gains total access to the system's management, sensitive financial data, and user configurations.

Technical requirements & Complexity

The attack requires prior technical knowledge of the internal API structure (field names and required values), which can be obtained by a legitimate user through browser developer tools. While it requires the target's code (e.g., admin), this is a common default value in most installations.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-02T18:17:33Z",
    "nvd_published_at":  "2026-02-02T23:16:07Z",
    "severity":  "HIGH"
}
References

Affected packages

Packagist / facturascripts/facturascripts

Package

Name
facturascripts/facturascripts
Purl
pkg:composer/facturascripts/facturascripts

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2025.71

Affected versions

2018.*
2018.03
2018.04
2018.05
2018.11
v2018.*
v2018.12
v2018.13
v2018.14
v2018.15
v2018.16
v2020.*
v2020.01
v2020.2
v2020.3
v2020.4
v2020.51
v2020.61
v2020.71
v2020.80
Other
v2021
v2024
v2025
v2021.*
v2021.1
v2021.2
v2021.4
v2021.51
v2021.71
v2021.81
v2022.*
v2022.2
v2022.4
v2022.06
v2022.08
v2022.51
v2023.*
v2023.03
v2023.08
v2023.16
v2023.21
v2024.*
v2024.1
v2024.2
v2024.3
v2024.5
v2024.7
v2024.8
v2024.9
v2024.91
v2024.93
v2024.94
v2024.95
v2024.96
v2025.*
v2025.2
v2025.3
v2025.4
v2025.7
v2025.8
v2025.11
v2025.41
v2025.43
v2025.71

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-4v7v-7v7r-3r5h/GHSA-4v7v-7v7r-3r5h.json"