CVE-2022-0381
WordPress vulnerability analysis and mitigation

Overview

The Embed Swagger WordPress plugin version 1.0.0 and earlier contains a Reflected Cross-Site Scripting vulnerability. The issue was discovered on January 21, 2022, and was assigned CVE-2022-0381. The vulnerability exists due to insufficient escaping/sanitization and validation of the url parameter in the ~/swagger-iframe.php file (WPScan, CVE Mitre).

Technical details

The vulnerability stems from improper handling of the url parameter in the swagger-iframe.php file. While the code implements URL validation using filtervar with FILTERVALIDATE_URL, it fails to properly escape or encode the output when reflecting the URL in a JavaScript context. The CVSS score for this vulnerability is 6.1 (medium) (WPScan, GitHub PoC).

Impact

The vulnerability allows attackers to inject arbitrary web scripts onto the page. If successfully exploited against logged-in administrators or users, the attacker could potentially perform administrative tasks which could lead to Remote Code Execution (GitHub PoC).

Mitigation and workarounds

There is no known fix for this vulnerability in the plugin. The suggested fix involves either removing the vulnerable code from line 59 in swagger-iframe.php or implementing proper URL encoding for the url parameter (GitHub PoC).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14030MEDIUM6.4
  • ai-feeds
NoYesDec 12, 2025
CVE-2025-12965MEDIUM6.4
  • magical-posts-display
NoYesDec 12, 2025
CVE-2025-14442MEDIUM5.3
  • secure-copy-content-protection
NoYesDec 12, 2025
CVE-2025-14065MEDIUM5.3
  • simple-bike-rental
NoYesDec 12, 2025
CVE-2025-14159MEDIUM4.3
  • secure-copy-content-protection
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management