GHSA-8fw4-xh83-3j6q

Suggest an improvement
Source
https://github.com/advisories/GHSA-8fw4-xh83-3j6q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-8fw4-xh83-3j6q/GHSA-8fw4-xh83-3j6q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8fw4-xh83-3j6q
Published
2020-09-11T21:18:05Z
Modified
2021-09-28T16:58:42Z
Summary
Cross-Site Scripting in diagram-js
Details

Versions of diagram-js prior to 3.3.1 (for 3.x) and 2.6.2 (for 2.x) are vulnerable to Cross-Site Scripting. The package fails to escape output of user-controlled input in search-pad, allowing attackers to execute arbitrary JavaScript.

Recommendation

If you are using diagram-js 3.x, upgrade to version 3.3.1. If you are using diagram-js 2.x, upgrade to version 2.6.2.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:42:58Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / diagram-js

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-8fw4-xh83-3j6q/GHSA-8fw4-xh83-3j6q.json"

npm / diagram-js

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-8fw4-xh83-3j6q/GHSA-8fw4-xh83-3j6q.json"