i18next
Affected
- introduced
0, fixed1.10.3(semver)
Fixed versions
1.10.3
Fix
- Fixed version
1.10.3npm install [email protected]
Advisory
Also known as: CVE-2017-16008
Cross-Site Scripting in i18next
Affected versions of i18next allow untrusted user input to be injected into dictionary key names, resulting in a cross-site scripting vulnerability.
Proof of Concept
var init = i18n.init({debug: true}, function(){
var test = i18n.t('__firstName__ __lastName__', {
escapeInterpolation: true,
firstName: '__lastNameHTML__',
lastName: '<script>',
});
console.log(test);
});
// equals "<script> <script>"
Recommendation
Update to version 1.10.3 or later.
Medium Basis: The source's own band: MODERATE
0, fixed 1.10.3 (semver)1.10.3
1.10.3npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0