Description
The dot package v1.1.2 uses Function() to compile templates. This can be exploited by the attacker if they can control the given template or if they can control the value set on Object.prototype.
Remediation
References
https://hackerone.com/reports/390929
Related Vulnerabilities
CVE-2021-23378 Vulnerability in npm package picotts
CVE-2021-27290 Vulnerability in npm package ssri
CVE-2020-10244 Vulnerability in maven package dev.paseto:jpaseto-sodium
CVE-2023-42278 Vulnerability in maven package cn.hutool:hutool-json
CVE-2023-29522 Vulnerability in maven package org.xwiki.platform:xwiki-platform-xclass-ui