CVE-2018-25031:
Spoofing attack in swagger-ui
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99187%
CWE
Published
3/12/2022
Updated
8/1/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
swagger-ui | npm | < 4.1.3 | 4.1.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Swagger UI's handling of URL parameters before v4.1.3. The key commit in GHSA-cr3q-pqgq-m8c2 (#7697) introduced a queryConfigEnabled
flag to disable this behavior by default. This indicates the core issue was in functions processing URL parameters during configuration setup. While exact function names/paths aren't explicitly shown in available resources, the pattern matches configuration initialization logic that would handle URL parameters like 'url' without validation.