CVE-2016-10537 Cross-Site Scripting in backbone
Cross-site scripting vulnerability in Backbone.js allows attackers to execute arbitrary scripts via unsanitized input in the Model#Escape function.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2016-10537?
CVE-2016-10537 is a medium-severity cross-site scripting vulnerability in HackerOne backbone node module, published on 31 May 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
backbone is a module that adds in structure to a JavaScript heavy application through key-value pairs and custom events connecting to your RESTful API through JSON There exists a potential Cross Site Scripting vulnerability in the `Model#Escape` function of backbone 0.3.3 and earlier, if a user is able to supply input. This is due to the regex that's replacing things to miss the conversion of things such as `<` to `<`.
Weakness: CWE-79
Which versions are affected by CVE-2016-10537?
2 open source packages ship an affected version, including backbone. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
backbone npm | From 0.3.3 | 0.5.0 |
backbone npm | From 0.3.3 | 0.5.0 |
Products include Backbone Project Backbone.
How do I fix CVE-2016-10537?
Upgrade backbone to 0.5.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2016-10537 being exploited?
There is no known exploitation of CVE-2016-10537 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2016-10537, GHSA-j6p2-cx3w-6jcp.