2021-05-12 22:00:55 +00:00
{
"CVE_data_meta" : {
2021-06-18 13:30:15 -06:00
"ASSIGNER" : "security-advisories@github.com" ,
2021-05-12 22:00:55 +00:00
"ID" : "CVE-2021-32696" ,
2021-06-18 13:30:15 -06:00
"STATE" : "PUBLIC" ,
"TITLE" : "Passing in a non-string 'html' argument can lead to unsanitized output"
2021-05-12 22:00:55 +00:00
} ,
2021-06-18 13:30:15 -06:00
"affects" : {
"vendor" : {
"vendor_data" : [
{
"product" : {
"product_data" : [
{
"product_name" : "striptags" ,
"version" : {
"version_data" : [
{
"version_value" : "< 3.2.0"
}
]
}
}
]
} ,
"vendor_name" : "ericnorris"
}
]
}
} ,
"data_format" : "MITRE" ,
"data_type" : "CVE" ,
"data_version" : "4.0" ,
2021-05-12 22:00:55 +00:00
"description" : {
"description_data" : [
{
"lang" : "eng" ,
2021-06-18 13:30:15 -06:00
"value" : "The npm package \"striptags\" is an implementation of PHP's strip_tags in Typescript. In striptags before version 3.2.0, 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. This can lead to a XSS."
2021-05-12 22:00:55 +00:00
}
]
2021-06-18 13:30:15 -06:00
} ,
"impact" : {
"cvss" : {
"attackComplexity" : "HIGH" ,
"attackVector" : "NETWORK" ,
"availabilityImpact" : "NONE" ,
"baseScore" : 3.7 ,
"baseSeverity" : "LOW" ,
"confidentialityImpact" : "LOW" ,
"integrityImpact" : "NONE" ,
"privilegesRequired" : "NONE" ,
"scope" : "UNCHANGED" ,
"userInteraction" : "NONE" ,
"vectorString" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N" ,
"version" : "3.1"
}
} ,
"problemtype" : {
"problemtype_data" : [
{
"description" : [
{
"lang" : "eng" ,
"value" : "CWE-241: Improper Handling of Unexpected Data Type"
}
]
} ,
{
"description" : [
{
"lang" : "eng" ,
"value" : "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
}
]
}
]
} ,
"references" : {
"reference_data" : [
{
"name" : "https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r" ,
"refsource" : "CONFIRM" ,
"url" : "https://github.com/ericnorris/striptags/security/advisories/GHSA-qxg5-2qff-p49r"
} ,
{
"name" : "https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca" ,
"refsource" : "MISC" ,
"url" : "https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca"
} ,
{
"name" : "https://github.com/ericnorris/striptags/releases/tag/v3.2.0" ,
"refsource" : "MISC" ,
"url" : "https://github.com/ericnorris/striptags/releases/tag/v3.2.0"
} ,
{
"name" : "https://www.npmjs.com/package/striptags" ,
"refsource" : "MISC" ,
"url" : "https://www.npmjs.com/package/striptags"
}
]
} ,
"source" : {
"advisory" : "GHSA-qxg5-2qff-p49r" ,
"discovery" : "UNKNOWN"
2021-05-12 22:00:55 +00:00
}
}