VDB
Sign up
CRITICAL9.8

GHSA-c427-hjc3-wrfw

Cross-site scripting in Swagger-UI

Quick fix

GHSA-c427-hjc3-wrfw — swagger-ui: upgrade to the fixed version with the command below.

npm install swagger-ui@3.23.11

Details

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 <style>@import within the JSON data was a functional attack method.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/swagger-ui
Introduced in: 0Fixed in: 3.23.11
Fixnpm install swagger-ui@3.23.11
Maven/org.webjars:swagger-ui
Introduced in: 0Fixed in: 3.23.11
Fix# pom.xml: bump <version>3.23.11</version> for org.webjars:swagger-ui
Maven/org.webjars.npm:swagger-ui
Introduced in: 0Fixed in: 3.23.11
Fix# pom.xml: bump <version>3.23.11</version> for org.webjars.npm:swagger-ui
Maven/io.springfox:springfox-swagger-ui
Introduced in: 0Fixed in: 2.10.0
Fix# pom.xml: bump <version>2.10.0</version> for io.springfox:springfox-swagger-ui

References