CVE-2021-23566

The package nanoid from 3.0.0 and before 3.1.31 are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.
References
Link Resource
https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444 Exploit Third Party Advisory
https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575 Patch Third Party Advisory
https://github.com/ai/nanoid/pull/328 Exploit Issue Tracking Patch Third Party Advisory
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550 Exploit Third Party Advisory
https://snyk.io/vuln/SNYK-JS-NANOID-2332193 Exploit Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:nanoid_project:nanoid:*:*:*:*:*:node.js:*:*

History

No history.

Information

Published : 2022-01-14 20:15

Updated : 2024-02-28 18:48


NVD link : CVE-2021-23566

Mitre link : CVE-2021-23566

CVE.ORG link : CVE-2021-23566


JSON object : View

Products Affected

nanoid_project

  • nanoid
CWE
CWE-704

Incorrect Type Conversion or Cast