Stackurity Start free trial

CVEs / CVE-2018-25031

CVE-2018-25031: n/a n/a vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2018-25031

Description

Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks. By persuading a victim to open a crafted URL, an attacker could exploit this vulnerability to display remote OpenAPI definitions. Note: This was originally claimed to be resolved in 4.1.3. However, third parties have indicated this is not resolved in 4.1.3 and even occurs in that version and possibly others.

The CVE record, via NVD · published 11 Mar 2022 · NVD status: Modified

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
n/a n/an/a—
smartbear swagger_uiup to and including 4.1.2—
As stated by OSV
ProductAffectedFixed in
swagger-ui (npm)before 4.1.34.1.3
org.webjars:swagger-ui (Maven)before 4.1.34.1.3

Package versions from GHSA-cr3q-pqgq-m8c2.

Exploitation

Not in the CISA Known Exploited Vulnerabilities catalog as of 25 Nov 2026.

Severity

CVSS 3.14.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Scored by NVD
WeaknessCWE-20, CWE-918, CWE-922

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.