In Smarty before 3.1.47 and 4.x before 4.2.1, libs/plugins/function.mailto.php allows XSS. A web page that uses smarty_function_mailto, and that could be parameterized using GET or POST input parameters, could allow injection of JavaScript code by a user.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
],
"vendor_product": "debian:debian_linux"
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.1.47"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.2.1"
}
],
"source": "CPE_RANGE"
},
{
"original_tag": "v3.1.47",
"range": [
{
"fixed": "a09364fe1706cb465e910eb040e592053d7effb8"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v4.2.1",
"range": [
{
"fixed": "ffa2b81a8e354a49fd8a2f24742dc9dc399e8007"
}
],
"source": "REFERENCES_TAG"
}
]
}