GHSA-2pwh-52h7-7j84

Suggest an improvement
Source
https://github.com/advisories/GHSA-2pwh-52h7-7j84
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-2pwh-52h7-7j84/GHSA-2pwh-52h7-7j84.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2pwh-52h7-7j84
Aliases
Published
2021-04-16T19:52:49Z
Modified
2024-12-02T05:45:58.228312Z
Summary
JavaScript execution via malicious molfiles (XSS)
Details

Impact

The viewer plugin implementation of <mol:molecule> renders molfile data directly inside a <script> tag without any escaping. Arbitrary JavaScript code can thus be executed in the client browser via crafted molfiles.

Patches

Patched in v0.3.0: Molfile data is now rendered as value of a hidden <input> tag and escaped via JSF's mechanisms.

Workarounds

No workaround available.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-04-13T17:35:23Z"
}
References

Affected packages

Maven / de.ipb-halle:molecularfaces

Package

Name
de.ipb-halle:molecularfaces
View open source insights on deps.dev
Purl
pkg:maven/de.ipb-halle/molecularfaces

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.0

Affected versions

0.*

0.2.0