Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2019-17495

CRITICAL 9.8PoCEPSS 94%

Cross-site scripting in Swagger-UI

Also known as GHSA-c427-hjc3-wrfw

Mitigation

  • Upgrade swagger-ui to 3.23.11 or later.
  • Upgrade org.webjars:swagger-ui to 3.23.11 or later.
  • Upgrade org.webjars.npm:swagger-ui to 3.23.11 or later.
  • Upgrade io.springfox:springfox-swagger-ui to 2.10.0 or later.

Who should check

  • Projects that depend on npm package swagger-ui (< 3.23.11)
  • Projects that depend on Maven package org.webjars:swagger-ui (< 3.23.11)
  • Projects that depend on Maven package org.webjars.npm:swagger-ui (< 3.23.11)
  • Projects that depend on Maven package io.springfox:springfox-swagger-ui (< 2.10.0)
  • Anyone running n/a (versions: see the vendor advisory)

Vulnerability facts

Affected
swagger-ui < 3.23.11; org.webjars:swagger-ui < 3.23.11; org.webjars.npm:swagger-ui < 3.23.11; io.springfox:springfox-swagger-ui < 2.10.0
Fixed in
3.23.11, 2.10.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
5.73% chance of exploitation in 30 days (percentile 94, 2026-11-26)
CWE
CWE-352
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
npm swagger-ui< 3.23.113.23.11osv
Maven org.webjars:swagger-ui< 3.23.113.23.11osv
Maven org.webjars.npm:swagger-ui< 3.23.113.23.11osv
Maven io.springfox:springfox-swagger-ui< 2.10.02.10.0osv
n/a——nvd

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2019-17495. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-17495.md
Affected: swagger-ui < 3.23.11; org.webjars:swagger-ui < 3.23.11; org.webjars.npm:swagger-ui < 3.23.11; io.springfox:springfox-swagger-ui < 2.10.0
Fixed in: 3.23.11, 2.10.0

Steps:
1. Search this machine and project for swagger-ui (npm), org.webjars:swagger-ui (Maven), org.webjars.npm:swagger-ui (Maven), io.springfox:springfox-swagger-ui (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2019-17495 being exploited?

There is no confirmed exploitation: CVE-2019-17495 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 5.73% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2019-17495?

Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.

Which versions are affected by CVE-2019-17495?

swagger-ui < 3.23.11; org.webjars:swagger-ui < 3.23.11; org.webjars.npm:swagger-ui < 3.23.11; io.springfox:springfox-swagger-ui < 2.10.0.

Is there a fix for CVE-2019-17495?

Yes. Fixed in 3.23.11, 2.10.0. Upgrade swagger-ui to 3.23.11 or later. Upgrade org.webjars:swagger-ui to 3.23.11 or later. Upgrade org.webjars.npm:swagger-ui to 3.23.11 or later. Upgrade io.springfox:springfox-swagger-ui to 2.10.0 or later.

How do I check if I'm affected by CVE-2019-17495?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors