Skip to content

Possible fix(deps): 5 vulnerable dependencies in pnpm-lock.yaml #27

Description

@begininvoke

Spotted what might be an issue in pnpm-lock.yaml around line 1.

The xlsx package (v0.18.5) contains a Prototype Pollution vulnerability (CVE-2023-30533) caused by insufficient input sanitization when parsing crafted Excel files. Successful exploitation allows attackers to inject or overwrite properties on the native Object.prototype, potentially leading to denial of service, data integrity breaches, or remote code execution in downstream server-side logic. This presents a High risk due to the widespread attack surface and potential for privilege escalation or application compromise in Node.js environments.

Something like this might fix it:

- Update the `xlsx` dependency constraint to `^0.19.3` in `package.json`
- Regenerate the lockfile by running: `pnpm install xlsx@^0.19.3 --lockfile-only`

Direct `pnpm-lock.yaml` diff (if manual editing is enforced):
```diff
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ ... @@
 packages:
-  xlsx@0.18.5:
-    resolution: { integrity: sha512-<old-hash> }
+  xlsx@0.19.3:
+    resolution: { integrity: sha512-<new-hash> }
```
After applying, verify the fix with `pnpm install && pnpm audit`.

For reference: rule CVE-2023-30533. Rated high.

The suggested change is untested against this project, so please read it before applying it.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions