VYPR
Unrated severityNVD Advisory· Published Feb 15, 2022· Updated Aug 3, 2024

CVE-2022-24588

CVE-2022-24588

Description

Flatpress v1.2.1 contains a stored XSS vulnerability in the Upload SVG File function, allowing arbitrary script execution.

AI Insight

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

Flatpress v1.2.1 contains a stored XSS vulnerability in the Upload SVG File function, allowing arbitrary script execution.

Vulnerability

A stored cross-site scripting (XSS) vulnerability exists in Flatpress v1.2.1 within the Upload SVG File function. The application fails to properly sanitize or validate SVG files containing JavaScript payloads during upload, allowing an attacker to store malicious code in the server's file system [1][2]. This issue affects the default configuration as the upload functionality is accessible to authenticated users.

Exploitation

An attacker with the ability to upload files (typically an authenticated user with upload privileges) can craft a malicious SVG file containing embedded JavaScript. The attacker uploads this SVG file via the vulnerable function; when the file is later accessed or rendered by a victim (e.g., via direct URL or inclusion in a page), the script executes in the victim's browser session [1][2]. No user interaction beyond viewing the file is required for exploitation.

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim's browsing session. This can lead to session hijacking, defacement, or exfiltration of sensitive data (such as cookies or page content) depending on the attacker's payload. The attack does not affect the server-side environment but compromises the integrity and confidentiality of end-user interactions with the Flatpress instance [1][2].

Mitigation

As of the publication date (2022-02-15), no official patch or updated version was available for Flatpress v1.2.1. Users should avoid uploading SVG files from untrusted sources, implement file type validation and strict sanitization of SVG content, or disable the SVG upload capability altogether until a fix is released [1][2].

AI Insight generated on May 27, 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

Root cause

"Missing sanitization of SVG file content allows arbitrary script execution when the file is rendered in a browser."

Attack vector

An attacker with the ability to upload files to a Flatpress instance can craft an SVG file containing malicious JavaScript or HTML. When the SVG file is rendered in a browser, the embedded script executes in the context of the victim's session, leading to cross-site scripting (XSS) [ref_id=1]. The attack requires the attacker to have upload access and the victim to view the uploaded SVG.

Affected code

The vulnerability is in the Upload SVG File function of Flatpress v1.2.1. The advisory does not specify the exact file path or function name within the codebase.

What the fix does

No patch or fix is included in the bundle. The advisory does not provide remediation guidance. To mitigate this vulnerability, administrators should restrict SVG file uploads or sanitize SVG content to remove executable script elements before storage.

Preconditions

  • authAttacker must have the ability to upload files (e.g., as an authenticated user with upload privileges)
  • inputVictim must view the uploaded SVG file in a browser

Generated on May 28, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

1

News mentions

0

No linked articles in our index yet.