QID 981150
QID 981150: Nodejs (npm) Security Update for handlebars (GHSA-9prh-257w-9277)
Versions of `handlebars` prior to 4.0.0 are affected by a cross-site scripting vulnerability when attributes in handlebar templates are not quoted.
## Proof of Concept
Template:
```<a href={{foo}}/>```
Input:
```{ 'foo' : 'test.com onload=alert(1)'}```
Rendered result:
```<a href=test.com onload=alert(1)/>```
## Recommendation
Update to version 4.0.0 or later.
Alternatively, ensure that all attributes in handlebars templates are encapsulated with quotes.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-9prh-257w-9277 for updates pertaining to this vulnerability.
Vendor References
- GHSA-9prh-257w-9277 -
github.com/advisories/GHSA-9prh-257w-9277
CVEs related to QID 981150
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-9prh-257w-9277 | handlebars |
|