{"id":"CVE-2020-7637","aliases":["CVE-2020-7637","GHSA-6gp3-h3jj-prx4","SNYK-JS-CLASSTRANSFORMER-564431"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype pollution in class-transformer","summary":"class-transformer before 0.3.1 allow attackers to perform Prototype Pollution. The classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"class-transformer before 0.3.1 allow attackers to perform Prototype Pollution. The classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.","source":"cvelist"},{"lang":"en","text":"class-transformer through 0.2.3 is vulnerable to Prototype Pollution. The 'classToPlainFromExist' function could be tricked into adding or modifying properties of 'Object.prototype' using a '__proto__' payload.","format":"markdown","source":"ghsa"},{"lang":"es","text":"class-transformer versiones anteriores a 0.3.1, permiten a los atacantes realizar la Contaminación Prototipo. La función \"classToPlainFromExist\" podría ser engañada para agregar o modificar propiedades de Object.prototype\" usando una carga útil \"__proto__\"","source":"nvd"}],"published":"2020-04-06T12:34:54.000Z","modified":"2026-07-08T06:49:53.325Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-915","CWE-1321"],"affected":[{"ranges":[{"version":"All versions prior to version 0.3.1","status":"affected"}],"product":"class-transformer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.1"}],"ecosystem":"npm","package":"class-transformer","purl":"pkg:npm/class-transformer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.3.1"}],"vendor":"class-transformer_project","product":"class-transformer","cpe":"cpe:2.3:a:class-transformer_project:class-transformer:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/typestack/class-transformer/commit/8f04eb9db02de708f1a20f6f2d2bb309b2fed01e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JS-CLASSTRANSFORMER-564431","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7637","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/typestack/class-transformer","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/typestack/class-transformer/blob/a650d9f490573443f62508bc063b857bcd5e2525/src/ClassTransformer.ts#L29-L31,","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7637","url":"https://www.cve.org/CVERecord?id=CVE-2020-7637","licence":"CVE Terms of Use","modified":"2024-08-04T09:33:19.944Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6gp3-h3jj-prx4","url":"https://github.com/advisories/GHSA-6gp3-h3jj-prx4","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:53.325Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7637","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7637","licence":"Public domain","modified":"2026-06-17T03:25:09.603Z"}],"updatedAt":"2026-11-25T22:57:51.789Z","epss":{"score":0.01188,"percentile":0.68782,"date":"2026-12-01T12:00:22.000Z"}}