CVE-2022-0381

Public Exploit
Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting

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.

Remediation

Solution:

  • Uninstall plugin from site.

Category

6.1
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 7.80% Top 10%
Third-Party Advisory github.com Third-Party Advisory wordpress.org Third-Party Advisory wordfence.com
Affected: Embed Swagger Embed Swagger
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-0381?
CVE-2022-0381 has been scored as a medium severity vulnerability.
How to fix CVE-2022-0381?
To fix CVE-2022-0381: Uninstall plugin from site.
Is CVE-2022-0381 being actively exploited in the wild?
It is possible that CVE-2022-0381 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~8% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-0381?
CVE-2022-0381 affects Embed Swagger Embed Swagger.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.