AllenFang / AllenFang/react-bootstrap-table
XSS when using dataFormat function
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2.2k
- Forks
- 761
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi
When using dataFormat function and not converting the value to react component
output is not sanitised. Therefore you can easily run XSS through it.
```
const Demo = props => {
let data = [
{key: "1", value: "test"},
{key: "2", value: '/1337">
'}
]
return (
v} />
);
};
```
Example: https://codesandbox.io/s/q7oj2v6xo9?fontsize=14
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.