CVE-2022-0381 MEDIUM

CVE-2022-0381: Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting

Vendor Embed Swagger
Product Embed Swagger
Weakness CWE-79 · XSS
Published February 4, 2022
Last update February 10, 2025

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

The Embed Swagger WordPress plugin is vulnerable to Reflected Cross-Site Scripting due to insufficient escaping/sanitization and validation via the url parameter found in the ~/swagger-iframe.php file which allows attackers to inject arbitrary web scripts onto the page, in versions up to and including 1.0.0.

Key dates

02Disclosure timeline

February 4, 2022 CVE published
February 10, 2025 Record updated