@electron/asar is vulnerable to Path Traversal
66
Medium Risk
@electron/asar reads, extracts, and packs ASAR archives without fully validating the untrusted header, file offsets, or entry paths. A crafted archive can declare an oversized header or file size that triggers large buffer allocations, supply offsets that read outside the archive bounds, use .. sequences in unpacked-file names to read files outside the .unpacked directory, or contain circular symlinks that cause unbounded recursion. Packing a source directory that contains symlinks with absolute or traversing targets could also place links outside the destination package. The fix adds strict header and offset validation, constrains unpacked reads and extraction to the target directory, and adds circular-symlink detection with a depth limit.
You are affected if you are using a version that falls within the vulnerable range and your application uses this library to read, extract, or pack untrusted ASAR archives or source directories.
@electron/asar is vulnerable to Path Traversal in versions 3.2.1 - 4.2.0.
Upgrade the @electron/asar library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant