{"id":"CVE-2021-21304","aliases":["CVE-2021-21304","GHSA-rrqm-p222-8ph2"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution in Dynamoose","summary":"Dynamoose is an open-source modeling tool for Amazon's DynamoDB. In Dynamoose from version 2.0.0 and before version 2.7.0 there was a prototype pollution vulnerability in the internal utility method \"lib/utils/object/set.ts\". This method is used throughout the codebase for various operations throughout Dynamoose. We have not seen any evidence of this vulnerability being exploited. There is no evidence this vulnerability impacts versions 1.x.x since the vulnerable method was added as part of the v2 rewrite. This vulnerability also impacts v2.x.x beta/alpha versions. Version 2.7.0 includes a patch for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Dynamoose is an open-source modeling tool for Amazon's DynamoDB. In Dynamoose from version 2.0.0 and before version 2.7.0 there was a prototype pollution vulnerability in the internal utility method \"lib/utils/object/set.ts\". This method is used throughout the codebase for various operations throughout Dynamoose. We have not seen any evidence of this vulnerability being exploited. There is no evidence this vulnerability impacts versions 1.x.x since the vulnerable method was added as part of the v2 rewrite. This vulnerability also impacts v2.x.x beta/alpha versions. Version 2.7.0 includes a patch for this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn Dynamoose versions 2.0.0-2.6.0 there was a prototype pollution vulnerability in the internal utility method [`lib/utils/object/set.ts`](https://github.com/dynamoose/dynamoose/blob/master/lib/utils/object/set.ts). This method is used throughout the codebase for various operations throughout Dynamoose.\n\nWe have not seen any evidence of this vulnerability being exploited.\n\nWe do not believe this issue impacts v1.x.x since this method was added as part of the v2 rewrite. This vulnerability also impacts v2.x.x beta/alpha versions.\n\n### Patches\n\nv2.7.0 includes a patch for this vulnerability.\n\n### Workarounds\n\nWe are unaware of any workarounds to patch this vulnerability other than upgrading to v2.7.0 or greater.\n\n### References\n\n- Patch commit hash: 324c62b4709204955931a187362f8999805b1d8e\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* [Contact me](https://charlie.fish/contact)\n* [Read our Security Policy](https://github.com/dynamoose/dynamoose/blob/master/SECURITY.md)\n\n### Credit\n\n- GitHub CodeQL Code Scanning","format":"markdown","source":"ghsa"},{"lang":"es","text":"Dynamoose es una herramienta de modelado de código abierto para DynamoDB de Amazon.&#xa0;En Dynamoose desde la versión 2.0.0 y anterior a la versión 2.7.0 había una vulnerabilidad de contaminación de prototipo en el método de utilidad interno \"lib/utils/object/set.ts\".&#xa0;Este método es usado en toda la base de código para varias operaciones en Dynamoose.&#xa0;No hemos visto ninguna evidencia de que haya sido explotada esta vulnerabilidad.&#xa0;No hay evidencia de que esta vulnerabilidad afecte a las versiones 1.xx ya que el método vulnerable se agregó como parte de la reescritura de v2.&#xa0;Esta vulnerabilidad también afecta a las versiones v2.xx beta/alpha.&#xa0;La versión 2.7.0 incluye un parche para esta vulnerabilidad","source":"nvd"}],"published":"2021-02-08T17:40:17.000Z","modified":"2026-09-10T03:48:25.799Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-915","CWE-1321"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.7.0","status":"affected"}],"vendor":"dynamoose","product":"dynamoose","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.7.0"}],"ecosystem":"npm","package":"dynamoose","purl":"pkg:npm/dynamoose","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.7.0"}],"vendor":"dynamoosejs","product":"dynamoose","cpe":"cpe:2.3:a:dynamoosejs:dynamoose:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dynamoose/dynamoose/security/advisories/GHSA-rrqm-p222-8ph2","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/dynamoose/dynamoose/commit/324c62b4709204955931a187362f8999805b1d8e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/dynamoose/dynamoose/releases/tag/v2.7.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/dynamoose","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21304","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dynamoose/dynamoose","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21304","url":"https://www.cve.org/CVERecord?id=CVE-2021-21304","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.762Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rrqm-p222-8ph2","url":"https://github.com/advisories/GHSA-rrqm-p222-8ph2","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:25.799Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21304","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21304","licence":"Public domain","modified":"2026-06-17T03:35:15.300Z"}],"updatedAt":"2026-11-25T22:57:59.840Z","epss":{"score":0.01917,"percentile":0.80475,"date":"2026-12-01T12:00:22.000Z"}}