CVE-2022-0381 json
Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting
published 4y ago modified 4mo ago also EUVD-2022-15530
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.9%
- EPSS 3.9% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Is CVE-2022-0381 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
3.87% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Nuclei template WordPress Embed Swagger <=1.0.0 - Cross-Site Scripting nuclei detection template
- gist.github.com https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected products
- Embed Swagger Embed Swagger
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
gist.github.com
/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3
exploit, third-party-advisory
-
wordfence.com
/vulnerability-advisories/#CVE-2022-0381
third-party-advisory
-
plugins.trac.wordpress.org
/browser/embed-swagger/trunk/swagger-iframe.php#L59
third-party-advisory
Sources
- CVE List CVE-2022-0381
- NVD CVE-2022-0381
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.