# CVE-2021-21304: Prototype Pollution in Dynamoose

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.92%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-02-08T17:40:17.000Z
- Modified: 2026-09-10T03:48:25.799Z
- Also known as: GHSA-rrqm-p222-8ph2
- Weaknesses: CWE-915, CWE-1321
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- dynamoose dynamoose: >= 2.0.0, < 2.7.0
- dynamoose (npm): from 2.0.0 before 2.7.0
- dynamoosejs dynamoose: from 2.0.0 before 2.7.0

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/dynamoose/dynamoose/security/advisories/GHSA-rrqm-p222-8ph2> (patch, third-party-advisory, web)
- <https://github.com/dynamoose/dynamoose/commit/324c62b4709204955931a187362f8999805b1d8e> (patch, third-party-advisory, web)
- <https://github.com/dynamoose/dynamoose/releases/tag/v2.7.0> (release-notes, third-party-advisory, web)
- <https://www.npmjs.com/package/dynamoose> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21304> (advisory)
- <https://github.com/dynamoose/dynamoose> (package)

## Sources

- CVE List: [CVE-2021-21304](https://www.cve.org/CVERecord?id=CVE-2021-21304), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-rrqm-p222-8ph2](https://github.com/advisories/GHSA-rrqm-p222-8ph2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21304](https://nvd.nist.gov/vuln/detail/CVE-2021-21304), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21304 · Whole record: https://cve.day/CVE-2021-21304.json · Rebuilt by cve.day 2026-11-25T22:57:59.840Z
