Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @lionello/secp256k1-js
  4. ›
  5. CVE-2022-41340

CVE-2022-41340: Improper Verification of Cryptographic Signature

September 24, 2022 (updated November 7, 2023)

The secp256k1-js package before 1.1.0 for Node.js implements ECDSA without required r and s validation, leading to signature forgery.

References

  • github.com/lionello/secp256k1-js/commit/302800f0370b42e360a33774bb808274ac729c2e
  • github.com/lionello/secp256k1-js/compare/1.0.1...1.1.0
  • github.com/lionello/secp256k1-js/issues/11
  • nvd.nist.gov/vuln/detail/CVE-2022-41340
  • www.npmjs.com/package/@lionello/secp256k1-js

Code Behaviors & Features

Detect and mitigate CVE-2022-41340 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

npm/@lionello/secp256k1-js/CVE-2022-41340.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.