Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceAdvisoriesAdvisory

GHSA-x9w5-v3q2-3rhw

browserify-sign upper bound check issue in `dsaVerify` leads to a signature forgery attack

In short

What to know.

Package
What to do
Upgrade browserify-sign to 4.2.2 or later.
Source's rating
HighNoumen has not assessed it.
Noumen finding
NMN-2026-0050Candidate. Severity high, confidence high.

3 December 2026

Source

  1. OSV record GHSA-x9w5-v3q2-3rhwosv.devRetrieved 3 December 2026

Full record

Identifier
GHSA-x9w5-v3q2-3rhw
Aliases
CVE-2023-46234
Severity
High, as rated by the source. Noumen has not assessed it.
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Fixed versions
4.2.2
Published
26 October 2023
Modified
10 September 2026
Source
OSV record GHSA-x9w5-v3q2-3rhw, retrieved 3 December 2026, 00:00 UTC

Affected packages and ranges

Affected packages
PackageAffected versionsFixed in
browserify-sign
npm
from 2.6.0 before 4.2.24.2.2

Affected means inside a published range, not that the code path is reachable in your project.

Details, as published by the source
As published by the source
### Summary An upper bound check issue in `dsaVerify` function allows an attacker to construct signatures that can be successfully verified by any public key, thus leading to a signature forgery attack. ### Details In `dsaVerify` function, it checks whether the value of the signature is legal by calling function `checkValue`, namely, whether `r` and `s` are both in the interval `[1, q - 1]`. However, the second line of the `checkValue` function wrongly checks the upper bound of the passed parameters, since the value of `b.cmp(q)` can only be `0`, `1` and `-1`, and it can never be greater than `q`. In this way, although the values of `s` cannot be `0`, an attacker can achieve the same effect as zero by setting its value to `q`, and then send `(r, s) = (1, q)` to pass the verification of any public key. ### Impact All places in this project that involve DSA verification of user-input signatures will be affected by this vulnerability. ### Fix PR: Since the temporary private fork was deleted, here's a webarchive of the PR discussion and diff pages: [PR webarchive.zip](https://github.com/browserify/browserify-sign/files/13172957/PR.webarchive.zip)