Medium

class.upload.php allows cross-site scripting attacks via uploaded files

  • Disclosed: 04.01.2024
  • Updated: 11.10.2026 10:22

As a simple library, class.upload.php does not perform an in-depth check on uploaded files, allowing a stored XSS vulnerability when the default configuration is used.

Developers must be aware of that fact and use extension whitelisting accompanied by forcing the server to always provide content-type based on the file extension.

The README has been updated to include these guidelines.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package verot/class.upload.php <= 2.1.6 no fix

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-20, CWE-434
Platform
Composer
Package
verot/class.upload.php
Disclosed
04.01.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-v6f4-jwv9-682w - CC BY 4.0

Vulnerability history: verot/class.upload.php

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
01.2020 01.2024
Without a fix
2
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • Medium 1

Disclosures per year

  1. 2020: 2
  2. 2021: 0
  3. 2022: 0
  4. 2023: 0
  5. 2024: 1
  6. 2025: 0
  7. 2026: 0
  1. class.upload.php allows cross-site scripting attacks via uploaded files this entry
    Medium · 6.5 CVE-2023-6551 <= 2.1.6 no fix
  2. Critical · 9.8 CVE-2019-19634 <= 1.0.3, >= 2.0.0, <= 2.0.4 no fix
  3. Critical · 9.8 CVE-2019-19576 < 1.0.3, >= 2.0.0, < 2.0.4 1.0.3, 2.0.4

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.