CVE-2022-0381
Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting
Record summary
CVE-2022-0381 has a selected CVSS score of 6.1 (medium); EIP currently links 1 Nuclei template.
Description
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.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Feb 10, 2025 · Source: CVE List
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
Embed SwaggerBrowse Embed Swagger / Embed Swagger | CVE List | 1.0.0 to ≤ 1.0.0 | affected |
Nuclei templates
1ProjectDiscoveryMEDIUMWordPress Embed Swagger <=1.0.0 - Cross-Site ScriptingCVSS 6.1
WordPress Embed Swagger plugin 1.0.0 and prior contains a reflected cross-site scripting vulnerability 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.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
Remediation
Update to the latest version of the WordPress Embed Swagger plugin (1.0.0) or apply a patch provided by the vendor.
Source: ProjectDiscovery