Lucene search

K
osvGoogleOSV:GHSA-QXG5-2QFF-P49R
HistoryJun 18, 2021 - 7:31 p.m.

Passing in a non-string 'html' argument can lead to unsanitized output

2021-06-1819:31:35
Google
osv.dev
14
type confusion
unsanitized output
xss
array-like object
query parameters
software security

EPSS

0.001

Percentile

48.3%

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.

EPSS

0.001

Percentile

48.3%

Related for OSV:GHSA-QXG5-2QFF-P49R