Description
This affects the package tempura before 0.4.0. If the input to the esc function is of type object (i.e an array) it is returned without being escaped/sanitized, leading to a potential Cross-Site Scripting vulnerability.
Remediation
References
https://github.com/lukeed/tempura/commit/58a5c3671e2f36b26810e77ead9e0dd471902f9b
https://github.com/lukeed/tempura/releases/tag/v0.4.0
https://snyk.io/vuln/SNYK-JS-TEMPURA-1569633
Related Vulnerabilities
CVE-2020-7642 Vulnerability in maven package org.webjars.bowergithub.afarkas:lazysizes
CVE-2021-23353 Vulnerability in maven package org.webjars:jspdf
CVE-2017-4947 Vulnerability in maven package com.vmware.xenon:xenon-common
CVE-2010-5312 Vulnerability in maven package org.webjars:jquery-ui
CVE-2022-0272 Vulnerability in maven package io.gitlab.arturbosch.detekt:detekt-core