Description
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.
Remediation
References
https://github.com/ai/nanoid/pull/328
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2332550
https://gist.github.com/artalar/bc6d1eb9a3477d15d2772e876169a444
https://snyk.io/vuln/SNYK-JS-NANOID-2332193
https://github.com/ai/nanoid/commit/2b7bd9332bc49b6330c7ddb08e5c661833db2575
Related Vulnerabilities
CVE-2022-22984 Vulnerability in npm package snyk-mvn-plugin
CVE-2022-45685 Vulnerability in maven package org.codehaus.jettison:jettison
CVE-2023-49210 Vulnerability in npm package openssl
CVE-2020-27224 Vulnerability in npm package @theia/preview
CVE-2021-32731 Vulnerability in maven package org.xwiki.platform:xwiki-platform-web