Executive brief
dojo is a popular JavaScript framework used to build dynamic web applications. Versions before 1.2.0 fail to sanitize HTML input from users, allowing attackers to inject malicious JavaScript code that executes in visitors' browsers. This can lead to session hijacking, credential theft, or malware distribution.
Technical details
The vulnerability is a Stored or Reflected Cross-Site Scripting (XSS) flaw caused by insufficient HTML sanitization in user-controlled input (CWE-79). The dojo framework prior to version 1.2.0 does not properly validate or escape HTML content, allowing attackers to inject arbitrary JavaScript. The attack requires user interaction (e.g., visiting a crafted link or viewing injected content), but no authentication is needed since the framework itself is the vulnerable component. An attacker can execute arbitrary JavaScript in the victim's browser context, potentially stealing session tokens, credentials, or performing actions on behalf of the user. The fix is to upgrade to dojo version 1.2.0 or later.
Affected products
- dojo dojo < 1.2.0
Timeline
- 2015: disclosed: CVE-2015-5654 assigned
- 2020-09-11: advisory: GHSA-p82g-2xpp-m5r3 published