GHSA-j6p2-cx3w-6jcp

Suggest an improvement
Source
https://github.com/advisories/GHSA-j6p2-cx3w-6jcp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/02/GHSA-j6p2-cx3w-6jcp/GHSA-j6p2-cx3w-6jcp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j6p2-cx3w-6jcp
Aliases
Published
2019-02-18T23:39:55Z
Modified
2023-11-08T03:58:11.272296Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cross-Site Scripting in backbone
Details

Affected versions of backbone are vulnerable to cross-site scripting when users are allowed to supply input to the Model#Escape function, and the output is then written to the DOM.

The vulnerability occurs as a result of the regular expression used to encode metacharacters failing to take HTML Entities such as < into account.

Recommendation

Update to version 0.5.0 or later.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:42:17Z",
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE"
}
References

Affected packages

npm / backbone

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.5.0