Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.
Start learningUpgrade preact to version 10.26.10, 10.27.3, 10.28.2 or higher.
preact is a fast 3kB alternative to React with the same modern API.
Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') during rendering in the vnode constructor. An attacker can inject arbitrary HTML or execute scripts by supplying specially crafted JSON objects that are incorrectly interpreted as valid VNodes when unsanitized, unvalidated user input is passed directly into the render tree.
Note:
This is only exploitable if applications pass unmodified, unsanitized values from user-modifiable data sources directly into the render tree, assume these values are strings while the data source could return JavaScript objects, and the data source fails to perform type sanitization or is compromised.
##Workaround
This vulnerability can be mitigated by validating input types, enforcing strict type contracts at API boundaries, casting or validating network data before rendering, sanitizing external data, and implementing a strict Content Security Policy (CSP) to prevent inline script execution.