Reflected Cross-Site Scripting in jquery.terminalGHSA-2hwp-g4g7-mwwj
Fix: jcubic/jquery.terminal@c8b7727GHSA-2hwp-g4g7-mwwj is a security vulnerability in jquery.terminal. A fix is available for jquery.terminal — see the affected versions and patch details below.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
jquery.terminalnpmDescription
Versions of jquery.terminal prior to 1.21.0 are vulnerable to Reflected Cross-Site Scripting. If the application has either of the options anyLinks or invokeMethods set to true, the application may execute arbitrary JavaScript through crafted malicious payloads due to insufficient sanitization.
Recommendation
Upgrade to version 1.21.0 or later
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | jquery.terminal | all versions | 1.21.0npm install jquery.terminal@1.21.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for jquery.terminal, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update jquery.terminal to 1.21.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2hwp-g4g7-mwwj is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is GHSA-2hwp-g4g7-mwwj in your dependencies?
Find it across npm, including transitive dependencies.