Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
⚠️ This package seems to have critical severity install script vulnerabilities

Affected script: "install-scripts:preinstall"

The code contains a portion where it tries to discern the current user's username (osname), and then, depending on the value of osname, it sends a request to either a local or remote server containing the username, git configuration data (user's name and email), thus potentially leaking sensitive user information. It makes an unencrypted HTTP request if osname equals 'xmarcgusmano' and an HTTPS request otherwise. The mere act of sending such user-identifiable information without clear consent and for unknown purposes can be considered a security vulnerability, as it could be part of a data exfiltration technique. This behavior is generally unexpected from a preinstall script as part of a Node.js package installation process.

Generated on May 16, 2024 via pnpm

@gusmano/reext 0.0.201

React ReExt
Package summary
Share
7
issues
1
critical severity
license
1
4
high severity
license
1
meta
3
1
moderate severity
meta
1
1
low severity
license
1
8
licenses
103
MIT
6
ISC
2
Apache-2.0
5
other licenses
BSD-3-Clause
1
N/A
1
Apache License, Version 2.0
1
0BSD
1
+ 1 more
Package created
28 Oct 2023
Version published
9 Nov 2023
Maintainers
1
Total deps
116
Direct deps
6
License
MIT

Issues

7

1 critical severity issue

critical
Recommendation: Check the package code and files for license information
via: iniparser@1.0.5
Collapse
Expand

4 high severity issues

high
Recommendation: Validate that the package complies with your license policy
via: inquirer-select-directory@1.2.0
via: @gusmano/reext@0.0.201
via: @gusmano/reext@0.0.201
via: inquirer-select-directory@1.2.0
Collapse
Expand

1 moderate severity issue

moderate
via: @gusmano/reext@0.0.201
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: inquirer-select-directory@1.2.0
Collapse
Expand

Install Script Usage

ⓘ This section contains AI-generated explanations for this package's install scripts.
     We recommend overviewing the package source files before installing to your project.

The "postinstall" Script

node ./dist/scripts/postinstall.js

The code provided appears to be a post-installation script for a Node.js package. It uses the fs module to modify the package.json file situated three directories up from the script's location by removing various script entries and dependencies. Additionally, it deletes several directories (./dist/scripts, ./dist/data, ./dist/resources, ./dist/source) within the dist directory of the package. This seems like it could be for cleanup after installation. There is no immediately obvious malicious functionality, such as code that steals sensitive information, gains unauthorized access, or downloads and executes remote code. However, there is a commented out line that could potentially remove a directory outside the package's scope, but as it is commented out it's not a concern unless activated. It's always recommended to conduct a thorough review and understand the context to ensure safety before running scripts, especially those that modify files or directories.

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
103 Packages, Including:
@gusmano/reext@0.0.201
@inquirer/figures@1.0.1
@ljharb/through@2.3.13
ansi-escapes@1.4.0
ansi-escapes@4.3.2
ansi-regex@2.1.1
ansi-regex@3.0.1
ansi-regex@5.0.1
ansi-styles@2.2.1
ansi-styles@4.3.0
base64-js@1.5.1
bl@4.1.0
buffer-from@1.1.2
buffer@5.7.1
call-bind@1.0.7
chalk@1.1.1
chalk@4.1.2
chalk@5.3.0
chardet@0.7.0
cli-cursor@1.0.2
cli-cursor@2.0.0
cli-cursor@3.1.0
cli-spinners@2.9.2
clone@1.0.4
color-convert@2.0.1
color-name@1.1.4
concat-stream@1.6.2
core-util-is@1.0.3
defaults@1.0.4
define-data-property@1.1.4
emoji-regex@8.0.0
es-define-property@1.0.0
es-errors@1.3.0
escape-string-regexp@1.0.5
exit-hook@1.1.1
extend@3.0.2
external-editor@1.1.1
external-editor@3.1.0
figures@2.0.0
function-bind@1.1.2
get-intrinsic@1.2.4
gopd@1.0.1
has-ansi@2.0.0
has-flag@4.0.0
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
hasown@2.0.2
iconv-lite@0.4.24
inquirer-select-directory@1.2.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
cli-width@2.2.1
cli-width@4.1.0
inherits@2.0.4
mute-stream@0.0.6
mute-stream@1.0.0
signal-exit@3.0.7

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
rx@4.1.0
rxjs@7.8.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ieee754@1.2.1

N/A

N/A
1 Packages, Including:
iniparser@1.0.5

Apache License, Version 2.0

Invalid
Not OSI Approved
1 Packages, Including:
rx-lite@4.0.8

BSD Zero Clause License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.2

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.21.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
ⓘ This is a list of @gusmano/reext 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
chalk5.3.013.08 kBMIT
prod
iniparser1.0.510 kBUNKNOWN
prod
1
inquirer-select-directory1.2.012.99 kBMIT
prod
2
1
inquirer9.2.2186.77 kBMIT
prod
react-dom18.3.14.3 MBMIT
prod peer
react18.3.1310.65 kBMIT
prod peer

Visualizations