Description
WS-2015-0003 - Medium Severity Vulnerability
Vulnerable Libraries - handlebars-3.0.3.min.js, handlebars-1.0.12.tgz
handlebars-3.0.3.min.js
Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
Library home page: https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.3/handlebars.min.js
Path to vulnerable library: /librenms/html/js/handlebars.min.js
Dependency Hierarchy:
- ❌ handlebars-3.0.3.min.js (Vulnerable Library)
handlebars-1.0.12.tgz
Extension of the Mustache logicless template language
Library home page: https://registry.npmjs.org/handlebars/-/handlebars-1.0.12.tgz
Path to dependency file: /librenms/lib/Leaflet.markercluster/package.json
Path to vulnerable library: /tmp/git/librenms/lib/Leaflet.markercluster/node_modules/handlebars/package.json
Dependency Hierarchy:
- karma-0.8.8.tgz (Root Library)
- istanbul-0.1.46.tgz
- ❌ handlebars-1.0.12.tgz (Vulnerable Library)
- istanbul-0.1.46.tgz
Found in HEAD commit: 6786bd528ec13c78dcbf535eebc40667f6da79a3
Vulnerability Details
Quoteless Attributes in Templates can lead to Content Injection
Publish Date: 2015-12-14
URL: WS-2015-0003
Suggested Fix
Type: Upgrade version
Origin: https://nodesecurity.io/advisories/61
Release Date: 2015-12-14
Fix Resolution: If you are unable to upgrade to version 4.0.0 or greater you can add quotes to your attributes in your handlebar templates.
Step up your Open Source Security Game with WhiteSource here