CVE-2013-4170
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`.
Severity
MEDIUM
CVSS v3
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source nvd
Exploit chance (EPSS)
0.942%
chance of exploitation in the next 30 days
higher than 61.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
Timeline
- 2022-06-30Published by the CNA12:38 UTC
- 2022-07-01GitHub advisory published (GHSA-5m48-c37x-f792)1 day after publication
Exploit and advisory records
GitHub advisory GHSA-5m48-c37x-f792, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems ember-source | before 1.0.0.rc1.1 | 1.0.0.rc1.1 |
| RubyGems ember-source | from 1.0.0.rc2.0 before 1.0.0.rc2.1 | 1.0.0.rc2.1 |
| RubyGems ember-source | from 1.0.0.rc3.0 before 1.0.0.rc3.1 | 1.0.0.rc3.1 |
| RubyGems ember-source | from 1.0.0.rc4.0 before 1.0.0.rc4.1 | 1.0.0.rc4.1 |
| RubyGems ember-source | from 1.0.0.rc5.0 before 1.0.0.rc5.1 | 1.0.0.rc5.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| emberjs ember.js | before 1.0.0fixed in 1.0.01.0.0no fix listed | 1.0.0not listed |
References
- https://groups.google.com/g/ember-security/c/dokLVwwxAdM
- https://security.snyk.io/vuln/SNYK-RUBY-EMBERSOURCE-20102
- https://rubysec.com/advisories/CVE-2013-4170/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2013-4170'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2013-4170'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2013-4170'curl 'https://api.contrastcyber.com/cve_products/CVE-2013-4170'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).