{"answers":{"affected":"12 open source packages ship an affected version, including ember-source. It affects 1 product.","exploited":"There is no known exploitation of CVE-2013-4170 in the wild and no public exploit code.","fix":"Upgrade ember-source to a fixed version for your release line: 1.0.0.rc1.1, 1.0.0.rc2.1, 1.0.0.rc3.1 or 1.0.0.rc4.1.","what":"CVE-2013-4170 is a medium-severity cross-site scripting vulnerability in ember-source, published on 30 Jun 2022. 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-2013-4170 and fix it if it is affected.\n\nWhat it is: CVE-2013-4170 is a medium-severity cross-site scripting vulnerability in ember-source, published on 30 Jun 2022. 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-2013-4170 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ember-source (RubyGems): affected all versions; fixed in 1.0.0.rc1.1\n- ember-source (RubyGems): affected all versions; fixed in 1.0.0.rc1.1\n- ember-source (RubyGems): affected from 1.0.0.rc2.0; fixed in 1.0.0.rc2.1\n- ember-source (RubyGems): affected from 1.0.0.rc2.0; fixed in 1.0.0.rc2.1\n- ember-source (RubyGems): affected from 1.0.0.rc3.0; fixed in 1.0.0.rc3.1\n- ember-source (RubyGems): affected from 1.0.0.rc3.0; fixed in 1.0.0.rc3.1\n- ember-source (RubyGems): affected from 1.0.0.rc4.0; fixed in 1.0.0.rc4.1\n- ember-source (RubyGems): affected from 1.0.0.rc4.0; fixed in 1.0.0.rc4.1\n- ember-source (RubyGems): affected from 1.0.0.rc5.0; fixed in 1.0.0.rc5.1\n- ember-source (RubyGems): affected from 1.0.0.rc5.0; fixed in 1.0.0.rc5.1\n- ember-source (RubyGems): affected from 1.0.0.rc6.0; fixed in 1.0.0.rc6.1\n- ember-source (RubyGems): affected from 1.0.0.rc6.0; fixed in 1.0.0.rc6.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-2013-4170/ (Markdown: https://insights.sbomify.com/CVE-2013-4170/index.md)","id":"CVE-2013-4170","markdown":"https://insights.sbomify.com/CVE-2013-4170/index.md","name":"CVE-2013-4170","record":{"aliases":["GHSA-5m48-c37x-f792"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Ember.js JavaScript library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript if applications bind user input to Ember.View tagName, requiring specific application coding practices.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ember.js","vendor":"emberjs"}],"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":"In general, Ember.js escapes or strips any user-supplied content before inserting it in strings that will be sent to innerHTML. However, the `tagName` property of an `Ember.View` was inserted into such a string without being sanitized. This means that if an application assigns a view's `tagName` to user-supplied data, a specially-crafted payload could execute arbitrary JavaScript in the context of the current domain (\"XSS\"). This vulnerability only affects applications that assign or bind user-provided content to `tagName`.","ecosystems":["RubyGems"],"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":"Ember.js Potential XSS Exploit When Binding `tagName` to User-Supplied Data","id":"CVE-2013-4170","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2013"},"n_packages":12,"n_references":3,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2013-4171"},"packages":[{"ecosystem":"RubyGems","fixed":["1.0.0.rc1.1"],"introduced":["0"],"last_affected":[],"package":"ember-source","purl":null,"source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc1.1"],"introduced":["0"],"last_affected":[],"package":"ember-source","purl":"pkg:gem/ember-source","source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc2.1"],"introduced":["1.0.0.rc2.0"],"last_affected":[],"package":"ember-source","purl":null,"source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc2.1"],"introduced":["1.0.0.rc2.0"],"last_affected":[],"package":"ember-source","purl":"pkg:gem/ember-source","source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc3.1"],"introduced":["1.0.0.rc3.0"],"last_affected":[],"package":"ember-source","purl":null,"source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc3.1"],"introduced":["1.0.0.rc3.0"],"last_affected":[],"package":"ember-source","purl":"pkg:gem/ember-source","source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc4.1"],"introduced":["1.0.0.rc4.0"],"last_affected":[],"package":"ember-source","purl":null,"source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc4.1"],"introduced":["1.0.0.rc4.0"],"last_affected":[],"package":"ember-source","purl":"pkg:gem/ember-source","source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc5.1"],"introduced":["1.0.0.rc5.0"],"last_affected":[],"package":"ember-source","purl":null,"source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc5.1"],"introduced":["1.0.0.rc5.0"],"last_affected":[],"package":"ember-source","purl":"pkg:gem/ember-source","source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc6.1"],"introduced":["1.0.0.rc6.0"],"last_affected":[],"package":"ember-source","purl":null,"source":"GHSA-5m48-c37x-f792"},{"ecosystem":"RubyGems","fixed":["1.0.0.rc6.1"],"introduced":["1.0.0.rc6.0"],"last_affected":[],"package":"ember-source","purl":"pkg:gem/ember-source","source":"GHSA-5m48-c37x-f792"}],"prev":{"headline":"Path traversal in n/a","id":"CVE-2013-4169"},"products":["ember-source"],"published":"2022-06-30","related":[{"cvss_score":6.1,"headline":"ember-source vulnerable to Cross-site Scripting","id":"CVE-2015-1866","kev_date_added":null,"published":"2017-09-20"},{"cvss_score":6.1,"headline":"ember-source Cross-site Scripting vulnerability","id":"CVE-2015-7565","kev_date_added":null,"published":"2017-04-13"},{"cvss_score":5.4,"headline":"Ember.js Cross-site Scripting vulnerability","id":"CVE-2014-0013","kev_date_added":null,"published":"2018-02-15"},{"cvss_score":5.4,"headline":"ember-source Cross-site Scripting vulnerability","id":"CVE-2014-0014","kev_date_added":null,"published":"2018-02-15"},{"cvss_score":2.6,"headline":"ember-source Cross-site Scripting vulnerability","id":"CVE-2014-0046","kev_date_added":null,"published":"2014-02-27"}],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Attackers can execute arbitrary JavaScript if applications bind user input to Ember.View tagName, requiring specific application coding practices.","url":"https://insights.sbomify.com/CVE-2013-4170/"}