Tóm tắt nhanh
- CVE-2021-32696 là lỗ hổng mức TRUNG BÌNH (CVSS 5.3) ảnh hưởng striptags (striptags project), striptags.
- Xác suất bị khai thác trong 30 ngày tới (EPSS): 1.1%, cao hơn 65.3% các lỗ hổng khác.
- Cách xử lý: cập nhật lên 3.2.0 hoặc mới hơn.
| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|
| striptags | < 3.2.0
| 3.2.0
|
| striptags npm | < 3.2.0
| 3.2.0
|
Mô tả
A type-confusion vulnerability can cause striptags to concatenate unsanitized strings when an array-like object is passed in as the html parameter. This can be abused by an attacker who can control the shape of their input, e.g. if query parameters are passed directly into the function.
Impact
XSS
Patches
3.2.0
Workarounds
Ensure that the html parameter is a string before calling the function.
Mô tả của NVD
The npm package "striptags" is an implementation of PHP's strip_tags in Typescript. In striptags before version 3.2.0, a type-confusion vulnerability can cause `striptags` to concatenate unsanitized strings when an array-like object is passed in as the `html` parameter. This can be abused by an attacker who can control the shape of their input, e.g. if query parameters are passed directly into the function. This can lead to a XSS.
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí