GHSA-xcx6-jx8p-x3h5: High severity npm/@azure/msal-node vulnerability
Impact
Origin validation error in Microsoft Authentication Library (MSAL) for Node.js allows an unauthorized attacker to disclose information over a network. This affects the authcode flow.
Patches
Version 7.1.0 and higher are patched.
Workarounds
Ensure you pass in only the authcode to to acquireTokenByCode
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/@azure/msal-nodeto a version that resolves this vulnerability.Fixed in 7.1.0 - Upgrade
Upgrade
Microsoft Authentication Library (MSAL) for Node.jsto a version that resolves this vulnerability.Fixed in 7.1.0 - Configuration
Pass only the auth_code to acquireTokenByCode.
Microsoft Authentication Library (MSAL) for Node.js acquireTokenByCode input = auth_code only