# CVE-2022-0381: Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting

- Severity: Medium 6.1 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.08%, higher than 90% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-04T22:29:25.000Z
- Modified: 2026-06-17T04:20:29.963Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Embed Swagger Embed Swagger: from 1.0.0 up to 1.0.0
- embed_swagger_project embed_swagger: up to 1.0.0

## Every score

- Wordfence: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3> (exploit, third-party-advisory)
- <https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381> (third-party-advisory)
- <https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-0381](https://www.cve.org/CVERecord?id=CVE-2022-0381), CVE Terms of Use, modified 2025-02-10
- NVD: [CVE-2022-0381](https://nvd.nist.gov/vuln/detail/CVE-2022-0381), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0381 · Whole record: https://cve.day/CVE-2022-0381.json · Rebuilt by cve.day 2026-11-25T22:58:09.499Z
