Back
CVE-2022-0381
Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting
Medium6.1EPSS 3.9%
- Published
- Updated
- Reserved
- Assigned by
- Wordfence
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| WordfenceCNA (assigner) | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 3.9% · top 9.8% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Weakness
Affected products
- affected 1.0.0 – ≤ 1.0.0
What to do
Solution: Uninstall plugin from site.
References (3)
- https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381 (opens in a new tab)x_refsource_MISCx_transferred
- https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3 (opens in a new tab)x_refsource_MISCx_transferred
- https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-0381)Record last updated .