CVE-2022-1291 XSS vulnerability with default `onCellHtmlData` function in hhurz/tableexport.jquery.plugin
Cross-site scripting in the table export plugin allows attackers to steal cookies and session data from secure sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1291?
CVE-2022-1291 is a high-severity cross-site scripting vulnerability in hhurz/tableexport.jquery.plugin, published on 10 Apr 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
XSS vulnerability with default `onCellHtmlData` function in GitHub repository hhurz/tableexport.jquery.plugin prior to 1.25.0. Transmitting cookies to third-party servers. Sending data from secure sessions to third-party servers
Weakness: CWE-79
Which versions are affected by CVE-2022-1291?
2 open source packages ship an affected version, including tableexport.jquery.plugin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tableexport.jquery.plugin npm | All versions | 1.25.0 |
tableexport.jquery.plugin npm | All versions | 1.25.0 |
Products include Tableexport.jquery.plugin Project Tableexport.jquery.plugin.
How do I fix CVE-2022-1291?
Upgrade tableexport.jquery.plugin to 1.25.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-1291 being exploited?
There is no known exploitation of CVE-2022-1291 in the wild and no public exploit code.
Sources
Also known as GHSA-j636-crp3-m584.