CVE-2022-0381
Published: 04 February 2022
Summary
CVE-2022-0381 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Embed Swagger Project Embed Swagger. Its CVSS base score is 6.1 (Medium).
Operationally, ranked in the top 10.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
The Embed Swagger WordPress plugin, versions up to and including 1.0.0, contains a reflected cross-site scripting vulnerability (CWE-79) in the swagger-iframe.php file. The flaw stems from missing escaping, sanitization, and validation of the url parameter, allowing arbitrary script injection into served pages. It carries a CVSS 3.1 score of 6.1 with network attack vector, low complexity, no required privileges, and required user interaction.
An unauthenticated remote attacker can supply a crafted URL containing malicious JavaScript that is reflected back to a victim who follows the link. Successful exploitation executes the script in the context of the affected site, enabling theft of session tokens, redirection, or other actions within the changed security context.
Advisories referenced in the Wordfence database and the plugin's Trac repository document the parameter handling issue but do not detail specific patch versions or configuration mitigations beyond the general need to update or remove the plugin.
EPSS for this CVE rose from a low baseline to a peak of 0.0985, indicating measurable post-disclosure exploitation interest before receding to the current value of 0.0439.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-15530
Vulnerability details
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…
more
to and including 1.0.0.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.