GHSA-7wqv-xjf3-x35v

Suggest an improvement
Source
https://github.com/advisories/GHSA-7wqv-xjf3-x35v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-7wqv-xjf3-x35v/GHSA-7wqv-xjf3-x35v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7wqv-xjf3-x35v
Aliases
Published
2026-06-19T19:35:11Z
Modified
2026-06-19T19:56:23Z
Severity
  • 2.1 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
parse-server: Stored XSS via trailing-dot filename bypassing file upload extension blocklist
Details

Impact

The default file upload extension blocklist can be bypassed by appending a trailing dot to a filename whose extension would otherwise be blocked (e.g. poc.svg.). The trailing dot causes the extension parser to extract an empty string, which short-circuits the blocklist check, and the attacker-controlled Content-Type is forwarded to the storage adapter unchanged. Storage adapters that persist and serve the provided Content-Type (such as S3 or GCS) then serve the file with an active type such as image/svg+xml, enabling stored XSS when a victim opens the file URL. The default GridFS adapter is not affected because it sets X-Content-Type-Options: nosniff on responses.

Patches

A filename ending in a dot is now treated as extensionless. When the parser produces an empty extension, the request handler falls back to validating the Content-Type subtype against the configured extension blocklist, matching the path that already catches truly extensionless uploads with a dangerous Content-Type. This is a follow-up to the previous fix GHSA-vr5f-2r24-w5hc.

Workarounds

Configure the storage adapter or CDN to derive Content-Type from the filename extension instead of using the stored Content-Type, or replace the default blocklist with an explicit allowlist of needed file extensions.

Database specific
{
    "cwe_ids":  [
        "CWE-434",
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-19T19:35:11Z",
    "nvd_published_at":  "2026-06-12T19:16:30Z",
    "severity":  "LOW"
}
References

Affected packages

npm / parse-server

Package

Affected ranges

Type
SEMVER
Events
Introduced
9.0.0
Fixed
9.9.1-alpha.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-7wqv-xjf3-x35v/GHSA-7wqv-xjf3-x35v.json"

npm / parse-server

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
8.6.79

Database specific

last_known_affected_version_range
"<= 8.6.78"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-7wqv-xjf3-x35v/GHSA-7wqv-xjf3-x35v.json"