{"containers":{"cna":{"affected":[{"product":"serialize-to-js","vendor":"commenthol","versions":[{"lessThan":"3.0.1","status":"affected","version":"< 3.0.1","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"The serialize-to-js NPM package before version 3.0.1 is vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementation of RegExp.prototype.toString() backslash-escapes all forward slashes in regular expressions. If serialized data of regular expression objects are used in an environment other than Node.js, it is affected by this vulnerability."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":3.1,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Cross-site Scripting (XSS)","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2019-12-06T23:25:14.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f"},{"tags":["x_refsource_MISC"],"url":"https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3"}],"source":{"advisory":"GHSA-3fjq-93xj-3f3f","discovery":"UNKNOWN"},"title":"regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2019-16772","STATE":"PUBLIC","TITLE":"regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"serialize-to-js","version":{"version_data":[{"version_affected":"<","version_name":"< 3.0.1","version_value":"3.0.1"}]}}]},"vendor_name":"commenthol"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"The serialize-to-js NPM package before version 3.0.1 is vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementation of RegExp.prototype.toString() backslash-escapes all forward slashes in regular expressions. If serialized data of regular expression objects are used in an environment other than Node.js, it is affected by this vulnerability."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":3.1,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79 Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"name":"https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f","refsource":"CONFIRM","url":"https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f"},{"name":"https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3","refsource":"MISC","url":"https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3"}]},"source":{"advisory":"GHSA-3fjq-93xj-3f3f","discovery":"UNKNOWN"}}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-05T01:24:48.633Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3"}]}]},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2019-16772","datePublished":"2019-12-06T23:25:14.000Z","dateReserved":"2019-09-24T00:00:00.000Z","dateUpdated":"2024-08-05T01:24:48.633Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}