cve.bz

CVE-2021-23445 datatables datatables.net: Cross-site Scripting

6.1 mediumExploit referenceEPSS 2.0%Fix available

Medium (6.1) in datatables datatables.net. EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in datatables.net 1.11.3.

On this page
This affects the package datatables.net before 1.11.3. If an array is passed to the HTML escape entities function it would not have its contents escaped.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-06-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23445 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23445?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23445?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23445 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
datatables:datatables.netbefore 1.11.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h73q-5wmj-q8pjnpmdatatables.net<1.11.31.11.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10datatables.js1.10.19+dfsg-1+deb10u1DLA-3529-1
Debian12, 13, 14datatables.js1.10.21+dfsg-3DEBIAN-CVE-2021-23445
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moredatatables.jsno fix listedUBUNTU-CVE-2021-23445
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more0:3.5.8-1.redhat_00001.1.el7eapRHSA-2024:3559
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hal-console0:3.3.22-1.Final_redhat_00001.1.el7eapRHSA-2024:3559
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly-elytron, eap7-wildfly-elytron-tool0:1.15.23-2.Final_redhat_00001.1.el7eapRHSA-2024:3559
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more0:3.5.8-1.redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-hal-console0:3.3.22-1.Final_redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-infinispan, eap7-infinispan-core, eap7-infinispan-commons and 7 more0:11.0.19-2.Final_redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-jboss-ejb-client0:4.0.54-3.Final_redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-jboss-jsf-api_2.3_spec0:3.0.0-8.SP08_redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-jboss-metadata, eap7-jboss-metadata-ear, eap7-jboss-metadata-ejb and 3 more0:13.5.0-1.Final_redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-jboss-modules0:1.12.3-3.Final_redhat_00001.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core0:1.10.0-36.Final_redhat_00035.1.el8eapRHSA-2024:3560
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-undertow0:2.2.32-1.SP1_redhat_00001.1.el8eapRHSA-2024:3560
23 more for Red Hat in the JSON and on Red Hat's page.
Azure Linux2reaperno fix listedAZL-66567

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The improper neutralization of input vulnerability in DataTables.net is considered a moderate severity issue because, while it allows for potential cross-site scripting (XSS) attacks, it requires specific conditions to be exploited effectively. An attacker must have the ability to inject malicious input into the system, and the application must pass this input to the HTML escape entities function without proper validation. Although XSS can lead to significant security risks, such as session hijacking and data theft, the impact is somewhat mitigated by the necessity of these preconditions. Moreover, this vulnerability does not compromise the underlying server or database directly, limiting its scope primarily to client-side exploitation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platformorg.jboss.hal/hal-console:3.3.22.Final-redhat-00001Fixed 2024-06-03RHSA-2024:3563
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-apache-cxf-0:3.5.8-1.redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-hal-console-0:3.3.22-1.Final_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-infinispan-0:11.0.19-2.Final_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-jboss-ejb-client-0:4.0.54-3.Final_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-jboss-jsf-api_2.3_spec-0:3.0.0-8.SP08_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-jboss-metadata-0:13.5.0-1.Final_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-jboss-modules-0:1.12.3-3.Final_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-jboss-server-migration-0:1.10.0-36.Final_redhat_00035.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-undertow-0:2.2.32-1.SP1_redhat_00001.1.el8eapFixed 2024-06-03RHSA-2024:3560
Red Hat Decision Manager 7datatables.netWill not fix
Red Hat Discovery 1discovery-server-containerWill not fix
Red Hat Enterprise Linux 8cockpitNot affected
Red Hat Enterprise Linux 8cockpit-appstreamNot affected
Red Hat Fuse 7datatables.netWill not fix
Red Hat JBoss Data Grid 7datatables.netWill not fix
Red Hat JBoss Enterprise Application Platform 8datatables.netNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packdatatables.netAffected
Red Hat OpenShift Container Platform 3.11openshift3/ose-consoleOut of support scope
Red Hat Process Automation 7datatables.netWill not fix
26 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23445.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON