5.4
MEDIUM CVSS 3.1
CVE-2021-43862
jQuery Terminal Emulator Cross-Site Scripting (XSS) Vulnerability
Description

jQuery Terminal Emulator is a plugin for creating command line interpreters in your applications. Versions prior to 2.31.1 contain a low impact and limited cross-site scripting (XSS) vulnerability. The code for XSS payload is always visible, but an attacker can use other techniques to hide the code the victim sees. If the application uses the `execHash` option and executes code from URL, the attacker can use this URL to execute their code. The scope is limited because the javascript attribute used is added to span tag, so no automatic execution like with `onerror` on images is possible. This issue is fixed in version 2.31.1. As a workaround, the user can use formatting that wrap whole user input and its no op. The code for this workaround is available in the GitHub Security Advisory. The fix will only work when user of the library is not using different formatters (e.g. to highlight code in different way).

INFO

Published Date :

Dec. 30, 2021, 3:15 p.m.

Last Modified :

Nov. 21, 2024, 6:29 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2021-43862 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Jquery.terminal_project jquery.terminal
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 LOW [email protected]
CVSS 3.1 LOW [email protected]
CVSS 3.1 MEDIUM [email protected]
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-43862.

URL Resource
https://github.com/jcubic/jquery.terminal/commit/77eb044d0896e990d48a9157f0bc6648f81a84b5 Patch Third Party Advisory
https://github.com/jcubic/jquery.terminal/issues/727 Issue Tracking Third Party Advisory
https://github.com/jcubic/jquery.terminal/releases/tag/2.31.1 Release Notes Third Party Advisory
https://github.com/jcubic/jquery.terminal/security/advisories/GHSA-x9r5-jxvq-4387 Exploit Issue Tracking Third Party Advisory
https://github.com/jcubic/jquery.terminal/commit/77eb044d0896e990d48a9157f0bc6648f81a84b5 Patch Third Party Advisory
https://github.com/jcubic/jquery.terminal/issues/727 Issue Tracking Third Party Advisory
https://github.com/jcubic/jquery.terminal/releases/tag/2.31.1 Release Notes Third Party Advisory
https://github.com/jcubic/jquery.terminal/security/advisories/GHSA-x9r5-jxvq-4387 Exploit Issue Tracking Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-43862 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-43862 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-43862 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/jcubic/jquery.terminal/commit/77eb044d0896e990d48a9157f0bc6648f81a84b5
    Added Reference https://github.com/jcubic/jquery.terminal/issues/727
    Added Reference https://github.com/jcubic/jquery.terminal/releases/tag/2.31.1
    Added Reference https://github.com/jcubic/jquery.terminal/security/advisories/GHSA-x9r5-jxvq-4387
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Aug. 09, 2022

    Action Type Old Value New Value
    Added CWE NIST CWE-79
  • Initial Analysis by [email protected]

    Jan. 11, 2022

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:H/Au:S/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/jcubic/jquery.terminal/commit/77eb044d0896e990d48a9157f0bc6648f81a84b5 No Types Assigned https://github.com/jcubic/jquery.terminal/commit/77eb044d0896e990d48a9157f0bc6648f81a84b5 Patch, Third Party Advisory
    Changed Reference Type https://github.com/jcubic/jquery.terminal/issues/727 No Types Assigned https://github.com/jcubic/jquery.terminal/issues/727 Issue Tracking, Third Party Advisory
    Changed Reference Type https://github.com/jcubic/jquery.terminal/releases/tag/2.31.1 No Types Assigned https://github.com/jcubic/jquery.terminal/releases/tag/2.31.1 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/jcubic/jquery.terminal/security/advisories/GHSA-x9r5-jxvq-4387 No Types Assigned https://github.com/jcubic/jquery.terminal/security/advisories/GHSA-x9r5-jxvq-4387 Exploit, Issue Tracking, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:jquery.terminal_project:jquery.terminal:*:*:*:*:*:*:*:* versions up to (excluding) 2.31.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.4
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 2.1
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.30 }} 0.02%

score

0.52611

percentile