CVE-2021-21304 json
Prototype Pollution in Dynamoose
published 5y ago modified last mo. also GHSA-rrqm-p222-8ph2 , EUVD-2021-0571
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
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.
Patch / fix
- npm dynamoose 2.7.0
- dynamoosejs dynamoose 2.7.0
Is CVE-2021-21304 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.92% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | dynamoose | >=2.0.0, <2.7.0 |
2.7.0 |
Affected products
- dynamoose dynamoose
Classification
References
-
github.com
/dynamoose/dynamoose/commit/324c62b4709204955931a187362f8999805b1d8e
web, patch, third-party-advisory
-
github.com
/dynamoose/dynamoose/security/advisories/GHSA-rrqm-p222-8ph2
web, patch, third-party-advisory
-
github.com
/dynamoose/dynamoose/releases/tag/v2.7.0
web, release-notes, third-party-advisory
-
npmjs.com
/package/dynamoose
web, product, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-21304
advisory
-
github.com
/dynamoose/dynamoose
package
Sources
- CVE List CVE-2021-21304
- GitHub Advisory GHSA-rrqm-p222-8ph2
- NVD CVE-2021-21304
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.