{"answers":{"affected":"8 open source packages ship an affected version, including io.springfox:springfox-swagger-ui, org.webjars.npm:swagger-ui and org.webjars:swagger-ui. It affects 6 products.","exploited":"There is no known exploitation of CVE-2019-17495 in the wild and no public exploit code.","fix":"Upgrade io.springfox:springfox-swagger-ui to 2.10.0 or later.","what":"CVE-2019-17495 is a critical cross-site scripting vulnerability in Oracle Banking Platform, published on 10 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-17495 and fix it if it is affected.\n\nWhat it is: CVE-2019-17495 is a critical cross-site scripting vulnerability in Oracle Banking Platform, published on 10 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-17495 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.springfox:springfox-swagger-ui (Maven): affected all versions; fixed in 2.10.0\n- io.springfox:springfox-swagger-ui (Maven): affected all versions; fixed in 2.10.0\n- org.webjars.npm:swagger-ui (Maven): affected all versions; fixed in 3.23.11\n- org.webjars.npm:swagger-ui (Maven): affected all versions; fixed in 3.23.11\n- org.webjars:swagger-ui (Maven): affected all versions; fixed in 3.23.11\n- org.webjars:swagger-ui (Maven): affected all versions; fixed in 3.23.11\n- swagger-ui (npm): affected all versions; fixed in 3.23.11\n- swagger-ui (npm): affected all versions; fixed in 3.23.11\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-17495/ (Markdown: https://insights.sbomify.com/CVE-2019-17495/index.md)","id":"CVE-2019-17495","markdown":"https://insights.sbomify.com/CVE-2019-17495/index.md","name":"CVE-2019-17495","record":{"aliases":["GHSA-c427-hjc3-wrfw"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Swagger UI","requires_auth":"none","summary":"Attackers can exfiltrate sensitive data like CSRF tokens via CSS injection in Swagger UI, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"banking_apis","vendor":"oracle"},{"product":"banking_digital_experience","vendor":"oracle"},{"product":"banking_platform","vendor":"oracle"},{"product":"primavera_gateway","vendor":"oracle"},{"product":"utilities_framework","vendor":"oracle"},{"product":"swagger_ui","vendor":"smartbear"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"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 \u003cstyle\u003e@import within the JSON data was a functional attack method.","ecosystems":["Maven","npm"],"exploits":{"exploitdb":0,"first_seen":"2019-12-24","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2019-12-24T13:23:06Z","kind":"github_poc","ref":"https://github.com/SecT0uch/CVE-2019-17495-test","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Cross-site scripting in Swagger-UI","id":"CVE-2019-17495","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:banking_platform","products":["oracle:banking_platform","oracle:primavera_gateway"],"type":"xss","year":"2019"},"n_packages":8,"n_references":11,"next":{"headline":"Craft CMS XSS Vulnerability","id":"CVE-2019-17496"},"packages":[{"ecosystem":"Maven","fixed":["2.10.0"],"introduced":["0"],"last_affected":[],"package":"io.springfox:springfox-swagger-ui","purl":null,"source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"Maven","fixed":["2.10.0"],"introduced":["0"],"last_affected":[],"package":"io.springfox:springfox-swagger-ui","purl":"pkg:maven/io.springfox/springfox-swagger-ui","source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"Maven","fixed":["3.23.11"],"introduced":["0"],"last_affected":[],"package":"org.webjars.npm:swagger-ui","purl":null,"source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"Maven","fixed":["3.23.11"],"introduced":["0"],"last_affected":[],"package":"org.webjars.npm:swagger-ui","purl":"pkg:maven/org.webjars.npm/swagger-ui","source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"Maven","fixed":["3.23.11"],"introduced":["0"],"last_affected":[],"package":"org.webjars:swagger-ui","purl":null,"source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"Maven","fixed":["3.23.11"],"introduced":["0"],"last_affected":[],"package":"org.webjars:swagger-ui","purl":"pkg:maven/org.webjars/swagger-ui","source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"npm","fixed":["3.23.11"],"introduced":["0"],"last_affected":[],"package":"swagger-ui","purl":null,"source":"GHSA-c427-hjc3-wrfw"},{"ecosystem":"npm","fixed":["3.23.11"],"introduced":["0"],"last_affected":[],"package":"swagger-ui","purl":"pkg:npm/swagger-ui","source":"GHSA-c427-hjc3-wrfw"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-17494"},"products":["n/a"],"published":"2019-10-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can exfiltrate sensitive data like CSRF tokens via CSS injection in Swagger UI, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2019-17495/"}