Loading vulnerability details...
| Property | Value |
|---|---|
| Advisory ID | SGZ-2026-652C2 |
| Severity | CRITICAL |
| CWE | CWE-321 |
| Confidence | 90% |
| Category | injection |
| Exploitability | confirmed |
| Package | netmd-js@latest (JavaScript) |
| Location | tools/gen_factory_vectors.ts:56-58 |
| Attack Vector | LOCAL |
| Attack Complexity | LOW |
| Privileges Required | NONE |
| Discovered By | SafeGuard Zero-Day AI Discovery Engine |
The code uses a hardcoded seed value (0xa596) for calculating checksums, which could be exploited by an attacker to predict and manipulate the checksums.
The vulnerability was identified in the file tools/gen_factory_vectors.ts at lines 56-58 within the netmd-js package (version latest). Any code path that invokes these functions inherits this vulnerability.
File: tools/gen_factory_vectors.ts (lines 56-58)
const data = randBytes(n); return { data: hex(data), seed: 0xa596, checksum: calculateChecksum(data, false, 0xa596) };
The code above demonstrates the vulnerable pattern. This code is executed at runtime and can be directly exploited by an attacker with the appropriate access level.
An attacker could exploit this vulnerability by predicting and manipulating the checksums, potentially allowing them to bypass security checks or inject malicious data.
High
Use a secure random number generator to generate the seed value instead of hardcoding it.
Advisory: SGZ-2026-652C2 | Source: SafeGuard Zero-Day AI Discovery | Status: Candidate
This vulnerability was autonomously discovered by SafeGuard's AI-powered Zero-Day Discovery engine using TAOR (Think-Act-Observe-Repeat) agentic analysis on the package source code. It is not yet tracked in any public vulnerability database (CVE, NVD, GHSA, OSV). This finding should be triaged by a security engineer and, if confirmed, reported upstream to the package maintainer.
| Property | Value |
|---|---|
| Advisory ID | SGZ-2026-652C2 |
| Severity | CRITICAL |
| CWE | CWE-321 |
| Confidence | 90% |
| Category | injection |
| Exploitability | confirmed |
| Package | netmd-js@latest (JavaScript) |
| Location | tools/gen_factory_vectors.ts:56-58 |
| Attack Vector | LOCAL |
| Attack Complexity | LOW |
| Privileges Required | NONE |
| Discovered By | SafeGuard Zero-Day AI Discovery Engine |
The code uses a hardcoded seed value (0xa596) for calculating checksums, which could be exploited by an attacker to predict and manipulate the checksums.
The vulnerability was identified in the file tools/gen_factory_vectors.ts at lines 56-58 within the netmd-js package (version latest). Any code path that invokes these functions inherits this vulnerability.
File: tools/gen_factory_vectors.ts (lines 56-58)
const data = randBytes(n); return { data: hex(data), seed: 0xa596, checksum: calculateChecksum(data, false, 0xa596) };
The code above demonstrates the vulnerable pattern. This code is executed at runtime and can be directly exploited by an attacker with the appropriate access level.
An attacker could exploit this vulnerability by predicting and manipulating the checksums, potentially allowing them to bypass security checks or inject malicious data.
High
Use a secure random number generator to generate the seed value instead of hardcoding it.
Advisory: SGZ-2026-652C2 | Source: SafeGuard Zero-Day AI Discovery | Status: Candidate
This vulnerability was autonomously discovered by SafeGuard's AI-powered Zero-Day Discovery engine using TAOR (Think-Act-Observe-Repeat) agentic analysis on the package source code. It is not yet tracked in any public vulnerability database (CVE, NVD, GHSA, OSV). This finding should be triaged by a security engineer and, if confirmed, reported upstream to the package maintainer. This vulnerability involves weaknesses in
This critical vulnerability poses an immediate and severe threat to system security. Exploitation could lead to complete system compromise, data breach, or denial of service. Immediate action is required.
Isolate affected systems from untrusted networks until patching is complete
Implement enhanced monitoring for exploitation attempts and unusual behavior