7.5
CWE
200 212
Advisory Published
CVE Published
Updated

CVE-2022-29244: npm packing does not respect root-level ignore files in workspaces

First published: Mon Jun 13 2022(Updated: )

A flaw was found in npm. This security issue occurs because the npm pack ignores root-level ".gitignore" and ".npmignore" file exclusion directives when run in a workspace or with a workspace flag (for example, --workspaces, --workspace=<name>). Anyone who has run 'npm pack' or 'npm publish' inside a workspace has published files into the npm registry they did not intend to include. This flaw exposes sensitive information to an unauthorized user or an attacker.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
redhat/nodejs<1:16.16.0-1.el9_0
1:16.16.0-1.el9_0
Npmjs Npm>=7.9.0<8.11.0
NetApp ONTAP Select Deploy administration utility

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2022-29244?

    CVE-2022-29244 is a security vulnerability in npm that allows ignoring certain exclusion directives.

  • How does the security issue in CVE-2022-29244 occur?

    The security issue in CVE-2022-29244 occurs because npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag.

  • Who is affected by CVE-2022-29244?

    Anyone who has run npm pack or npm publish inside a workspace may be affected by CVE-2022-29244.

  • What is the severity of CVE-2022-29244?

    The severity of CVE-2022-29244 is high with a CVSS score of 7.5.

  • How can I fix CVE-2022-29244?

    To fix CVE-2022-29244, update Node.js to version 16.15.1, 17.19.1, or 18.3.0, or update the nodejs package to version 1:16.16.0-1.el9_0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203