CVE-2021-42751: XSS in ThingsBoard Rule Engine 3.3.1
- Vendor
- Thingsboard
A cross-site scripting (XSS) vulnerability exists in the Rule Engine component of ThingsBoard version 3.3.1. The vulnerability allows remote attackers with administrative access to inject arbitrary JavaScript code into the description field of a rule node. This occurs due to insufficient sanitization of user-supplied input in the description field, which is subsequently rendered in the web interface.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker with administrative access to execute arbitrary JavaScript in the context of the user's browser session. This can lead to session hijacking, data theft, or further compromise of the application depending on the privileges of the affected user.
Mitigation
If you can’t patch tonight, do this now.
Restrict administrative access to trusted users only. Employ web application firewalls (WAFs) that can detect and block XSS payloads. Monitor and audit administrative actions for suspicious activity until the vulnerability is remediated.
Remediation
Patch, then assume compromise.
Upgrade ThingsBoard to a version where this vulnerability is patched. Ensure that all user-supplied input, especially in the description field of rule nodes, is properly sanitized and encoded before rendering in the web interface.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-42751 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-42751 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-42751?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-42751.
- Is there a patch for CVE-2021-42751?
- Upgrade ThingsBoard to a version where this vulnerability is patched. Ensure that all user-supplied input, especially in the description field of rule nodes, is properly sanitized and encoded before rendering in the web interface.
- What products are affected by CVE-2021-42751?
- Thingsboard.
- How severe is CVE-2021-42751?
- CVE-2021-42751 has a CVSS v3.1 score of 4.8 (Medium) and an EPSS score of 3.2% (88th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.