CVE-2024-25712: XSS

Published Feb 11, 2024
·
Updated

http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via httpSwagger.WrapHandler and webdav.memFile) can subsequently be accessed via a GET request. NOTE: this is independently fixable with respect to CVE-2022-24863, because (if a solution continued to allow PUT requests) large files could have been blocked without blocking JavaScript, or JavaScript could have been blocked without blocking large files.

Affected Software

2 affected componentsFixes available
go/github.com/swaggo/http-swagger<1.2.6
1.2.6
Http-swagger Project Http-swagger<1.2.6

Event History

Feb 11, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Feb 29, 2024
Data Sourced
via NVD·01:44 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:33 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-25712?

CVE-2024-25712 has a medium severity rating due to the potential for XSS through malicious PUT requests.

2

How do I fix CVE-2024-25712?

To fix CVE-2024-25712, update to http-swagger version 1.2.6 or later.

3

What impacts does CVE-2024-25712 have on my application?

CVE-2024-25712 may allow attackers to execute arbitrary scripts in the context of a user's session through XSS.

4

Is CVE-2024-25712 specific to certain versions of http-swagger?

Yes, CVE-2024-25712 affects versions of http-swagger prior to 1.2.6.

5

What are the conditions for CVE-2024-25712 to be exploited?

CVE-2024-25712 can be exploited if an application allows upload of files via PUT requests without proper validation.

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