Skip to content
XSS Disclosed report Intermediate CVE-2022-1726

Cross-site Scripting in bootstrap-table

The Bootstrap Table library's export plugin, when configured with htmlContent enabled, did not properly sanitise cell content, allowing injected HTML to execute as script. An attacker could use this to steal session cookies or other sensitive data from users viewing an affected table.

wenzhixin/bootstrap-table

Originally disclosed on huntr

Bootstrap Tables XSS vulnerability with Table Export plug-in when exportOptions: htmlContent is true in GitHub repository wenzhixin/bootstrap-table prior to 1.20.2. Disclosing session cookies, disclosing secure session data, exfiltrating data to third-parties.

From the GitHub Advisory Database (GHSA-grw5-g9h2-wpg8, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the export plugin inserted cell content into the page as HTML without sanitising it when htmlContent was enabled.

Impact

An attacker could disclose session cookies, secure session data, and exfiltrate data to third parties.

What the attacker needed

Victim views a table with malicious cell content; htmlContent export option enabled

The fix

The issue was fixed in version 1.20.2.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A table library let people put HTML into table cells, and when exporting the table it ran that HTML as code. That means a malicious value in a cell could run a script in another user's browser and read their cookies.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.