# GHSA-g336-c7wv-8hp3: Cross-Site Scripting in swagger-ui

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-01T15:58:06.000Z
- Modified: 2021-09-23T21:35:43.000Z
- Weaknesses: CWE-79

## Description

Affected versions of `swagger-ui` are vulnerable to cross-site scripting via the `url` query string parameter.


## Recommendation

Update to 2.2.1 or later.

(As written by GitHub Advisory Database.)

## Affected

- swagger-ui (npm): before 2.2.1

## References

- <https://github.com/swagger-api/swagger-ui/issues/1617> (web)
- <https://github.com/swagger-api/swagger-ui/commit/a1aea70f2c64533bf053a41d4da5a8accd0117b7> (web)
- <https://github.com/swagger-api/swagger-ui> (package)
- <https://www.npmjs.com/advisories/137> (web)

## Sources

- GitHub Advisory Database: [GHSA-g336-c7wv-8hp3](https://github.com/advisories/GHSA-g336-c7wv-8hp3), CC-BY-4.0, modified 2021-09-23

---

Page: https://cve.day/GHSA-g336-c7wv-8hp3 · Whole record: https://cve.day/GHSA-g336-c7wv-8hp3.json · Rebuilt by cve.day 2026-11-25T22:56:45.341Z
