Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
LOW severity

jquery.terminal self XSS on user inputGHSA-x9r5-jxvq-4387

LOWFix: jcubic/jquery.terminal@77eb044

GHSA-x9r5-jxvq-4387 is a low-severity (CVSS 3.7) CWE-80 vulnerability in jquery.terminal. 1 public exploit reference exists, so weaponization risk is real. A fix is available for jquery.terminal — see the affected versions and patch details below.

Also known asCVE-2021-43862
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Oct 11, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.0%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs63th percentile — riskier than 63% of all scored CVEsHighest risk
0.00%0.51%1.02%1.54%0.3%1.0%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

GHSA-x9r5-jxvq-4387 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected

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.

14other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
jquery.terminalnpm
6Kdownloads / week

Description

Impact

This is low impact and limited XSS, because code for XSS payload is always visible, but attacker can use other techniques to hide the code the victim sees.

Also if the application use execHash option and execute code from URL the attacker can use this URL to execute his code. The scope is limited because the javascript code inside html attribute used is added to span tag, so no automatic execution like with onerror on images is possible.

Patches

Fixed version 2.31.1

Workarounds

The user can use formatting that wrap whole user input and it's no op.

$.terminal.new_formatter([/([\s\S]+)/g, '[[;;]$1]']);

The fix will only work when user of the library is not using different formatters (e.g. to highlight code in different way).

References

The issue was reported here jcubic/jquery.terminal#727

For more information

If you have any questions or comments about this advisory:

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmjquery.terminalall versions2.31.1npm install jquery.terminal@2.31.1

Affected Products

1 product · 1 configurations
Application
jquery.terminaljquery.terminal_project
< 2.31.1
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. Fix

    Update jquery.terminal to 2.31.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-x9r5-jxvq-4387 is resolved across your whole dependency graph.

  3. 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

### Impact This is low impact and limited XSS, because code for XSS payload is always visible, but attacker can use other techniques to hide the code the victim sees. Also if the application use execHash option and execute code from URL the attacker can use this URL to execute his code. The scope is limited because the javascript code inside html attribute used is added to span tag, so no automatic execution like with `onerror` on images is possible. ### Patches Fixed version 2.31.1 ### Workarounds The user can use formatting that wrap whole user input and it's no op. ```javascript $.termi
O3 Security · Impact-Aware SCA

Is GHSA-x9r5-jxvq-4387 in your dependencies?

Find it across npm, including transitive dependencies.

jquery.terminal self XSS on user input (Low 3.7)