Medium 5.4 CVSS 3.1 Core Published on 2020-09-24

Stored XSS in upload files

CVECVE-2020-15162 GHSAGHSA-rc8c-v7rq-q392
View at the source View JSON Last modified at the source: 2026-06-17

Description

Stored XSS in upload files

Impact

Users are allowed to send compromised files, these attachments allowed people to input malicious JavaScript which triggered XSS payload

Patches

The problem is fixed in 1.7.6.8

Workarounds

With apache

In your .htaccess file `` <FilesMatch "\.pdf$"> Header set Content-Disposition "Attachment" Header set X-Content-Type-Options "nosniff" </FilesMatch> ``

In your /upload/.htaccess file `` <IfModule mod_headers.c> Header set Content-Disposition "Attachment" Header set X-Content-Type-Options "nosniff" </IfModule> ``

With Nginx

``` location ~* \.pdf$ { add_header Content-Disposition Attachment; add_header X-Content-Type-Options nosniff; }

location ~ ^/upload/ { add_header Content-Disposition Attachment; add_header X-Content-Type-Options nosniff; } ```

References

Cross-site Scripting (XSS) - Stored (CWE-79)

Original text by NVD (NIST), public domain.

CVSS metrics 3.1

Source: security-advisories@github.com · secondary
Medium 5.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Attack vectorNetwork
ComplexityHigh
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone

References

Found a vulnerability?

Write to the PrestaShop core security team:

security-core@prestashop.com

Related advisories

Same component: PrestaShop core
All core advisories (94)
IDAdvisoryComponentSeverityAffected versionsPublishedFix
GHSA-whxq-pxj5-qq7v SQL injection through back-office list filters Core Medium 6.5 ≥ 9.0.0 < 9.1.5
≥ 8.0.0 < 8.2.8
2026-08-18 Yes
GHSA-2cr4-vw9p-pjvf Client IP address can be spoofed through the X-Forwarded-For header Core High 7.3 ≥ 9.0.0 < 9.1.5
≥ 8.0.0 < 8.2.8
2026-08-18 Yes

Is your shop on 1.7.x ≥ 1.5.0.0 < 1.7.6.8?

PrestaShield checks it from the outside, without FTP access, and alerts you of every new advisory that affects you.
Check if my shop is affected