GHSA-hpwf-8g29-85qm

Suggest an improvement
Source
https://github.com/advisories/GHSA-hpwf-8g29-85qm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hpwf-8g29-85qm/GHSA-hpwf-8g29-85qm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hpwf-8g29-85qm
Aliases
  • CVE-2026-40879
Published
2026-04-14T00:15:09Z
Modified
2026-05-05T16:07:32.834605Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
Details

Impact

Attacker sends many small, valid JSON messages in one TCP frame → handleData() recurses once per message; buffer shrinks each call → maxBufferSize is never reached; call stack overflows instead → A ~47 KB payload is sufficient to trigger RangeError

Patches

Fixed in @nestjs/microservices@11.1.19

References

Discovered by https://github.com/hwpark6804-gif

Database specific
{
    "github_reviewed_at": "2026-04-14T00:15:09Z",
    "nvd_published_at": "2026-04-21T20:17:01Z",
    "cwe_ids": [
        "CWE-674",
        "CWE-770"
    ],
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

npm / @nestjs/microservices

Package

Name
@nestjs/microservices
View open source insights on deps.dev
Purl
pkg:npm/%40nestjs/microservices

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
11.1.19

Database specific

last_known_affected_version_range
"<= 11.1.18"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-hpwf-8g29-85qm/GHSA-hpwf-8g29-85qm.json"