Advisory

GHSA-h3mw-4f23-gwpw

Details, part 2 of 2. The advisory

Details

Impact Scale:

  • Affects all downstream users of compromised packages
  • Can target specific frameworks (React, Vue, etc.) used by thousands of applications
  • Enables XSS in browsers, RCE in Electron applications
  • Difficult to detect as traffic appears legitimate

Patch

  1. Path validation is required when unpacking a tar file.
  2. X-Npmrc whitelist logic is required.

Sources & licences