GitHub Advisoryadvisory · npm, Maven

GHSA-c427-hjc3-wrfw Cross-site scripting in Swagger-UI

CRITICAL Published 2019-10-15 Modified 2024-08-26 Official page ↗
Aliases
CVE-2019-17495
Ecosystem
npm, Maven
Packages
swagger-ui, org.webjars:swagger-ui, org.webjars.npm:swagger-ui, io.springfox:springfox-swagger-ui
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-352, CWE-79
Reviewed
2019-10-14

Affected packages

• npm swagger-ui: < 3.23.11 → fixed in 3.23.11 • Maven org.webjars:swagger-ui: < 3.23.11 → fixed in 3.23.11 • Maven org.webjars.npm:swagger-ui: < 3.23.11 → fixed in 3.23.11 • Maven io.springfox:springfox-swagger-ui: < 2.10.0 → fixed in 2.10.0

Description

A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the Relative Path Overwrite (RPO) technique to perform CSS-based input field value exfiltration, such as exfiltration of a CSRF token value. In other words, this product intentionally allows the embedding of untrusted JSON data from remote servers, but it was not previously known that @import within the JSON data was a functional attack method.

Related

Alias · CVE (1)

  • CVE-2019-17495 A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the Relative Path Overwrite… vulnerability

Weakness · CWE (2)

  • CWE-352 Cross-Site Request Forgery weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References