CVE-2020-4041: The filename of uploaded files vulnerable to stored XSS

Published Jun 8, 2020
·
Updated

Impact

The filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it.

Additionally, the measures to prevent renaming the file to disallowed filename extensions could be circumvented.

Patches

This is fixed in Bolt 3.7.1.

References

Related issue: https://github.com/bolt/bolt/pull/7853

Other sources

In Bolt CMS before version 3.7.1, the filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it. Additionally, the measures to prevent renaming the file to disallowed filename extensions could be circumvented. This is fixed in Bolt 3.7.1.

— MITRE

The filename of uploaded files vulnerable to stored XSS

— Packagist

Affected Software

4 affected componentsFixes available
Boltcms Bolt<3.7.1
Microsoft cbl2 bolt 0.9.2-2
composer/bolt/bolt<3.7.1
3.7.1
composer/bolt/bolt<3.7.1
3.7.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/bolt/bolt to a version that resolves this vulnerability.

    Fixed in 3.7.1
  2. Upgrade

    Upgrade Bolt CMS to a version that resolves this vulnerability.

    Fixed in 3.7.1

Event History

Jun 8, 2020
CVE Published
via MITRE·10:05 PM
Data Sourced
via MITRE·10:05 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 9, 2020
Advisory Published
via GitHub·12:25 AM
Data Sourced
via GitHub·12:25 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·12:25 AM
DescriptionSeverityAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-4041?

CVE-2020-4041 is considered a medium severity vulnerability due to its potential for stored XSS attacks.

2

How do I fix CVE-2020-4041?

To fix CVE-2020-4041, upgrade Bolt CMS to version 3.7.1 or higher.

3

What kind of attack can CVE-2020-4041 be used for?

CVE-2020-4041 can be exploited for stored XSS attacks through renaming uploaded files.

4

Which versions of Bolt CMS are affected by CVE-2020-4041?

CVE-2020-4041 affects all versions of Bolt CMS prior to 3.7.1.

5

Is it possible to execute JavaScript code through file uploads due to CVE-2020-4041?

Yes, CVE-2020-4041 allows for the execution of JavaScript code by renaming uploaded files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203