{"answers":{"affected":"2 open source packages ship an affected version, including swagger-ui. It affects 3 products.","exploited":"There is no known exploitation of CVE-2016-1000229 in the wild and no public exploit code.","fix":"Upgrade swagger-ui to 2.2.1 or later.","what":"CVE-2016-1000229 is a medium-severity vulnerability in Redhat Openshift, published on 20 Dec 2019."},"fix_prompt":"Check this codebase for CVE-2016-1000229 and fix it if it is affected.\n\nWhat it is: CVE-2016-1000229 is a medium-severity vulnerability in Redhat Openshift, published on 20 Dec 2019. \nExploitation: There is no known exploitation of CVE-2016-1000229 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- swagger-ui (npm): affected all versions; fixed in 2.2.1\n- swagger-ui (npm): affected all versions; fixed in 2.2.1\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-2016-1000229/ (Markdown: https://insights.sbomify.com/CVE-2016-1000229/index.md)","id":"CVE-2016-1000229","markdown":"https://insights.sbomify.com/CVE-2016-1000229/index.md","name":"CVE-2016-1000229","record":{"aliases":["GHSA-h8wp-wgcq-qhrf"],"analysis":null,"analysis_generated_by":null,"assigner":"mitre","cpe":[{"product":"jboss_fuse","vendor":"redhat"},{"product":"openshift","vendor":"redhat"},{"product":"swagger-ui","vendor":"smartbear"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"swagger-ui has XSS in key names","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-03-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-03-20T15:43:28Z","kind":"github_poc","ref":"https://github.com/barteeees/SwaggerUI-CVE-2016-1000229","stars":0,"title":"CVE-2016-1000229"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper Neutralization of Input During Web Page Generation in swagger-ui","id":"CVE-2016-1000229","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"redhat:openshift","products":["redhat:openshift"],"type":null,"year":"2016"},"n_packages":2,"n_references":4,"next":{"headline":"ReDoS via long string of semicolons in tough-cookie","id":"CVE-2016-1000232"},"packages":[{"ecosystem":"npm","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"swagger-ui","purl":null,"source":"GHSA-h8wp-wgcq-qhrf"},{"ecosystem":"npm","fixed":["2.2.1"],"introduced":["0"],"last_affected":[],"package":"swagger-ui","purl":"pkg:npm/swagger-ui","source":"GHSA-h8wp-wgcq-qhrf"}],"prev":{"headline":"Other in n/a","id":"CVE-2016-1000222"},"products":["n/a"],"published":"2019-12-20","related":[{"cvss_score":7.5,"headline":"Denial of service in Undertow","id":"CVE-2020-27782","kev_date_added":null,"published":"2021-02-23"},{"cvss_score":7.5,"headline":"Security feature bypass in Wildfly","id":"CVE-2020-10718","kev_date_added":null,"published":"2020-09-16"},{"cvss_score":7.1,"headline":"Improper Authentication for Keycloak","id":"CVE-2020-1718","kev_date_added":null,"published":"2020-05-12"},{"cvss_score":6,"headline":"Auth bypass in n/a","id":"CVE-2014-8175","kev_date_added":null,"published":"2015-07-08"},{"cvss_score":3.3,"headline":"OIDC Logout redirect in keycloak","id":"CVE-2020-10734","kev_date_added":null,"published":"2021-02-11"},{"cvss_score":2.7,"headline":"Generation of Error Message Containing Sensitive Information in Keycloak","id":"CVE-2020-1717","kev_date_added":null,"published":"2021-02-11"}],"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-06","vendors":["n/a"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2016-1000229/"}