{"id":"GHSA-5m48-c37x-f792","summary":"Ember.js Potential XSS Exploit When Binding `tagName` to User-Supplied Data","details":"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`.","aliases":["CVE-2013-4170"],"modified":"2026-09-10T03:49:55.212583306Z","published":"2022-07-01T00:01:11Z","database_specific":{"github_reviewed_at":"2022-07-12T21:27:47Z","nvd_published_at":"2022-06-30T13:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-4170"},{"type":"PACKAGE","url":"https://github.com/emberjs/ember.js"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ember-source/CVE-2013-4170.yml"},{"type":"WEB","url":"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM"},{"type":"WEB","url":"https://groups.google.com/g/ember-security/c/dokLVwwxAdM"},{"type":"WEB","url":"https://rubysec.com/advisories/CVE-2013-4170"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-RUBY-EMBERSOURCE-20102"}],"affected":[{"package":{"name":"ember-source","ecosystem":"RubyGems","purl":"pkg:gem/ember-source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0.rc1.1"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","1.0.0.pre4.0","1.0.0.pre4.1","1.0.0.pre4.2","1.0.0.rc1.0.0"],"database_specific":{"last_known_affected_version_range":"\u003c= 1.0.0.rc1.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-5m48-c37x-f792/GHSA-5m48-c37x-f792.json"}},{"package":{"name":"ember-source","ecosystem":"RubyGems","purl":"pkg:gem/ember-source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0.rc2.0"},{"fixed":"1.0.0.rc2.1"}]}],"versions":["1.0.0.rc2.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-5m48-c37x-f792/GHSA-5m48-c37x-f792.json"}},{"package":{"name":"ember-source","ecosystem":"RubyGems","purl":"pkg:gem/ember-source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0.rc3.0"},{"fixed":"1.0.0.rc3.1"}]}],"versions":["1.0.0.rc3","1.0.0.rc3.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-5m48-c37x-f792/GHSA-5m48-c37x-f792.json"}},{"package":{"name":"ember-source","ecosystem":"RubyGems","purl":"pkg:gem/ember-source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0.rc4.0"},{"fixed":"1.0.0.rc4.1"}]}],"versions":["1.0.0.rc4","1.0.0.rc4.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-5m48-c37x-f792/GHSA-5m48-c37x-f792.json"}},{"package":{"name":"ember-source","ecosystem":"RubyGems","purl":"pkg:gem/ember-source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0.rc5.0"},{"fixed":"1.0.0.rc5.1"}]}],"versions":["1.0.0.rc5","1.0.0.rc5.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-5m48-c37x-f792/GHSA-5m48-c37x-f792.json"}},{"package":{"name":"ember-source","ecosystem":"RubyGems","purl":"pkg:gem/ember-source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0.rc6.0"},{"fixed":"1.0.0.rc6.1"}]}],"versions":["1.0.0.rc6","1.0.0.rc6.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-5m48-c37x-f792/GHSA-5m48-c37x-f792.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}