{"answers":{"affected":"2 open source packages ship an affected version, including sinatra. It affects 2 products.","exploited":"There is no known exploitation of CVE-2018-11627 in the wild and no public exploit code.","fix":"Upgrade sinatra to 2.0.2 or later.","what":"CVE-2018-11627 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 May 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-11627 and fix it if it is affected.\n\nWhat it is: CVE-2018-11627 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 May 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-11627 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sinatra (RubyGems): affected from 2.0.0; fixed in 2.0.2\n- sinatra (RubyGems): affected from 2.0.0; fixed in 2.0.2\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-2018-11627/ (Markdown: https://insights.sbomify.com/CVE-2018-11627/index.md)","id":"CVE-2018-11627","markdown":"https://insights.sbomify.com/CVE-2018-11627/index.md","name":"CVE-2018-11627","record":{"aliases":["GHSA-mq35-wqvf-r23c","RHSA-2019:0315","UBUNTU-CVE-2018-11627","openSUSE-SU-2024:11353-1","openSUSE-SU-2024:12033-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby web framework","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in victim browsers via a cross-site scripting flaw in the Sinatra framework's error handling.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cloudforms","vendor":"redhat"},{"product":"sinatra","vendor":"sinatrarb"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.","ecosystems":["Red Hat:cloudforms_managementengine:5.9::el7","RubyGems","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Sinatra Cross-site Scripting vulnerability","id":"CVE-2018-11627","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2018"},"n_packages":13,"n_references":4,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2018-11628"},"packages":[{"ecosystem":"RubyGems","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"sinatra","purl":null,"source":"GHSA-mq35-wqvf-r23c"},{"ecosystem":"RubyGems","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"sinatra","purl":"pkg:gem/sinatra","source":"GHSA-mq35-wqvf-r23c"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme","purl":"pkg:rpm/redhat/cfme","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-amazon-smartstate","purl":"pkg:rpm/redhat/cfme-amazon-smartstate","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-appliance","purl":"pkg:rpm/redhat/cfme-appliance","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-appliance-common","purl":"pkg:rpm/redhat/cfme-appliance-common","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-appliance-debuginfo","purl":"pkg:rpm/redhat/cfme-appliance-debuginfo","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-appliance-tools","purl":"pkg:rpm/redhat/cfme-appliance-tools","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-debuginfo","purl":"pkg:rpm/redhat/cfme-debuginfo","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-gemset","purl":"pkg:rpm/redhat/cfme-gemset","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:5.9.8.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-gemset-debuginfo","purl":"pkg:rpm/redhat/cfme-gemset-debuginfo","source":"RHSA-2019:0315"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.9::el7","fixed":["0:1.0.1-3.2.el7cf"],"introduced":["0"],"last_affected":[],"package":"dbus-api-service","purl":"pkg:rpm/redhat/dbus-api-service","source":"RHSA-2019:0315"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.2.0-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-sinatra","purl":"pkg:rpm/opensuse/rubygem-sinatra\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12033-1"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2018-11626"},"products":["n/a"],"published":"2018-05-31","related":[{"cvss_score":9.1,"headline":"Auth bypass in CloudForms","id":"CVE-2020-14325","kev_date_added":null,"published":"2020-08-11"},{"cvss_score":8.8,"headline":"Cross-site request forgery in CFME","id":"CVE-2014-0197","kev_date_added":null,"published":"2019-12-13"},{"cvss_score":8.8,"headline":"Code injection in cfme","id":"CVE-2016-5402","kev_date_added":null,"published":"2018-10-31"},{"cvss_score":8.8,"headline":"Missing authorization in CFME","id":"CVE-2016-7071","kev_date_added":null,"published":"2018-09-10"},{"cvss_score":8.8,"headline":"Missing authorization in cfme","id":"CVE-2017-7530","kev_date_added":null,"published":"2018-07-26"},{"cvss_score":8.8,"headline":"Code injection in n/a","id":"CVE-2016-4471","kev_date_added":null,"published":"2017-06-08"},{"cvss_score":8.8,"headline":"Code injection in n/a","id":"CVE-2016-5383","kev_date_added":null,"published":"2016-08-26"}],"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary scripts in victim browsers via a cross-site scripting flaw in the Sinatra framework's error handling.","url":"https://insights.sbomify.com/CVE-2018-11627/"}