Skip to content
Fencer Intel
high —

GHSA-v9wp-8r97-v6xg json

Cross-Site Scripting in jquery.json-viewer

published 6y ago modified 6y ago

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

Versions of `jquery.json-viewer` prior to 1.3.0 are vulnerable to Cross-Site Scripting (XSS). The package insufficiently sanitizes user input when creating links, and concatenates the user input in an `<a>` tag. This allows attackers to create malicious links with JSON payloads such as: ``` { "foo": "https://bar.com\" onmouseover=alert('xss') \"" } ```

This may lead to arbitrary JavaScript execution in a victim's browser.

## Recommendation

Upgrade to version 1.3.0 or later.

Patch / fix

  • npm jquery.json-viewer 1.3.0

Is GHSA-v9wp-8r97-v6xg in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
npm jquery.json-viewer
<1.3.0
1.3.0

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.