CVE-2018-8319 — msrcrypto
CRITICALCVE-2018-8319 is a critical-severity (CVSS 9.8) CWE-682 vulnerability in msrcrypto. A fix is available for msrcrypto — see the affected versions and patch details below.
Sensitive Data Exposure in msrcrypto
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
msrcryptonpmDescription
Versions of msrcrypto prior to 1.4.1 are vulnerable to Sensitive Data Exposure. The package's Elliptic Curve Cryptography (ECC) implementation may leak information about a server's private ECC key. It can also allow attackers to craft invalid ECDSA signatures that pass as valid. There is no published proof-of-concept for this vulnerability.
Recommendation
Upgrade to version 1.4.1 or later.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | msrcrypto | all versions | 1.4.1npm install msrcrypto@1.4.1 |
Affected Products
research javascript cryptography librarymicrosoftDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for msrcrypto, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update msrcrypto to 1.4.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-8319 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Frequently Asked Questions
Is CVE-2018-8319 in your dependencies?
Find it across npm, including transitive dependencies.