{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-25031","id":"CVE-2018-25031","title":"Spoofing attack in swagger-ui","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.","descriptionLong":"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.","published":"2022-03-11T06:47:46.000Z","updated":"2026-10-24T10:49:40.852168289Z","reserved":"2022-03-11T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"swagger-ui","purl":"pkg:npm/swagger-ui","ranges":["<4.1.3"],"fixed":["4.1.3"],"advisory":"GHSA-cr3q-pqgq-m8c2"},{"ecosystem":"Maven","name":"org.webjars:swagger-ui","purl":"pkg:maven/org.webjars/swagger-ui","ranges":["<4.1.3"],"fixed":["4.1.3"],"advisory":"GHSA-cr3q-pqgq-m8c2"}],"cwes":["CWE-922","CWE-918","CWE-20"],"aliases":["GHSA-cr3q-pqgq-m8c2"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/swagger-api/swagger-ui/issues/4872","tags":["x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3","tags":["x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20220407-0004/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-25031","tags":["advisory"]},{"url":"https://github.com/swagger-api/swagger-ui/pull/7697","tags":["web"]},{"url":"https://github.com/swagger-api/swagger-ui","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20220407-0004","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.42326,"epssPercentile":0.98727,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-25031","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-25031","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-25031","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cr3q-pqgq-m8c2","ok":true,"note":"GHSA-cr3q-pqgq-m8c2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-25031","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}