VYPR
Unrated severityNVD Advisory· Published Feb 17, 2023· Updated Mar 18, 2025

Cross-site Scripting (XSS) - Stored in btcpayserver/btcpayserver

CVE-2023-0879

Description

Cross-site Scripting (XSS) - Stored in GitHub repository btcpayserver/btcpayserver prior to 1.7.12.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Stored XSS in BTCPayServer prior to 1.7.12 allows attackers to upload malicious files (e.g., SVG) that execute scripts when viewed.

Vulnerability

A stored cross-site scripting (XSS) vulnerability exists in BTCPayServer versions prior to 1.7.12. The application's file upload functionality did not validate the actual content type of uploaded files, relying solely on file extensions or MIME types. This allowed an attacker to upload files such as SVG images containing embedded JavaScript, which would be stored and later rendered in a browser without proper sanitization [1][2].

Exploitation

An attacker with the ability to upload files (e.g., as part of store configuration, invoice attachments, or other features) can craft a malicious file, such as an SVG with an embedded `` tag. The file is uploaded and stored on the server. When a victim views the uploaded file (e.g., by visiting a page that displays the file), the browser executes the embedded script in the context of the BTCPayServer application [2]. No special authentication is required if the upload endpoint is publicly accessible.

Impact

Successful exploitation allows the attacker to execute arbitrary JavaScript in the victim's browser session. This can lead to theft of session cookies, unauthorized actions on behalf of the victim, defacement of the application interface, or exfiltration of sensitive data displayed on the page [2].

Mitigation

The vulnerability is fixed in BTCPayServer version 1.7.12. The fix introduces a FileTypeDetector class that validates file content by checking magic bytes (file signatures) for common image formats, rejecting files that do not match expected signatures [1]. Users should upgrade to version 1.7.12 or later. No workaround is documented for unpatched versions.

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.