Improper Verification of Cryptographic Signature in tEnvoy

tenvoy Updated 02 Oct 2025

Summary

28/06/2021
CRITICAL
Yes i
Critical
9.8

GHSA-7r96-8g3x-g36m: Improper Verification of Cryptographic Signature. Affects tenvoy versions < 7.0.3. Fixed in 7.0.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

tEnvoy is an open-source package available on the npm ecosystem. It provides cryptographic signing and verification functionality using the NaCl library. The package allows users to sign messages with a private key and verify the signatures with a corresponding public key. However, a vulnerability has been discovered in the verifyWithMessage method of the tEnvoyNaClSigningKey class. This method incorrectly verifies the cryptographic signature, leading to potential security issues.

Vulnerability Detail

The verifyWithMessage method in tEnvoy always returns true for any signature of a SHA-512 hash matching the SHA-512 hash of the message, even if the signature is invalid. This means that an attacker can forge a signature and the verification process will still consider it valid. The impact of this vulnerability is critical as it undermines the integrity and authenticity of the cryptographic signatures. An attacker could potentially impersonate a legitimate user or tamper with the signed data without detection.

How To Fix

Latest published version: 7.0.7 as of 23 Oct 2026

npm install tenvoy@7.0.7

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.0.3

This is the first release that contains the fix.

npm install tenvoy@7.0.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be applied. In the tenvoy.js file, locate the verifyWithMessage method definition within the tEnvoyNaClSigningKey class. Modify the return statement to ensure that the call to this.verify ends with .verified. For example, change return this.verify(signed, password) && to return this.verify(signed, password).verified && . This modification ensures that the verification process properly checks the validity of the signature.

Conclusion

In conclusion, the tEnvoy package is vulnerable to an improper verification of cryptographic signatures. Upgrading to version 7.0.3 or applying the provided workaround is crucial to mitigate the risk associated with this vulnerability. Reverification of previously verified signatures is highly recommended. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tenvoy →

Share this vulnerability

FAQ

The impact of this vulnerability is critical as it allows an attacker to forge valid signatures, undermining the integrity and authenticity of the cryptographic signatures. This can lead to impersonation of legitimate users or tampering with signed data without detection.

To fix this vulnerability, it is recommended to upgrade to version 7.0.3 of the tEnvoy package. This version includes a patch that addresses the improper verification issue. Reverification of previously verified signatures is also recommended.

Yes, previous signatures verified with the vulnerable verifyWithMessage method are still considered valid. However, to ensure the integrity of the signatures, it is highly recommended to reverify them using the updated method after upgrading to version 7.0.3.

Yes, if upgrading to the latest version is not immediately feasible, a temporary workaround can be applied. It involves modifying the verifyWithMessage method in the tenvoy.js file to ensure proper verification of the signature.

For more information, you can open an issue in the GitHub repository of tEnvoy: https://github.com/TogaTech/tEnvoy

Related vulnerabilities

Recent vulnerabilities recorded for tenvoy.

How To Fix

Latest published version: 7.0.7 as of 23 Oct 2026

npm install tenvoy@7.0.7

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.0.3

This is the first release that contains the fix.

npm install tenvoy@7.0.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback