question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[VULNERABILITY/BREAKS] Impossible to build on CI / Possible vulnerability

See original GitHub issue

Description

It seems that there’s a story about the colors npm package recently, which led to the author’s npm account suspension. Npm reverted to safe versions but RN is using one that does not exist anymore, throwing a 404… React Native depending on it, it makes me impossible to build my app with AppCenter

error An unexpected error occurred: "https://registry.yarnpkg.com/colors/-/colors-1.4.2.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "/Users/runner/work/1/s/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
##[error]/bin/sh failed with return code: 1
##[error]/bin/sh failed with error: /bin/sh failed with return code: 1

yarn why

=> Found "colors@1.4.2"
info Reasons this module exists
   - "react-native#react-native-codegen#jscodeshift" depends on it
   - Hoisted from "react-native#react-native-codegen#jscodeshift#colors"
info Disk size without dependencies: "120KB"
info Disk size with unique dependencies: "120KB"
info Disk size with transitive dependencies: "120KB"
info Number of shared dependencies: 0

Version

0.66.4

Output of npx react-native info

ystem: OS: macOS 12.0.1 CPU: (8) arm64 Apple M1 Memory: 155.75 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2021.11.15.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/var/rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: API Levels: 23, 28, 29, 30, 31 Build Tools: 28.0.3, 29.0.2, 30.0.0, 30.0.2 System Images: android-30 | AOSP ATD ARM 64 v8a, android-30 | ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-30 | Google APIs ATD ARM 64 v8a, android-31 | ARM 64 v8a, android-31 | Google Play ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: 1.8.0_292 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.4 => 0.66.4 react-native-macos: Not Found npmGlobalPackages:

Steps to reproduce

Install a stock react-native project, Setup AppCenter, Build.

Snack, code example, screenshot, or link to a repository

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
waldenermonteirocommented, Jan 12, 2022

I solved it by removing node modules and yarn.lock, and running yarn again. It will use version 1.4.0 of colors

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vulnerabilities in Build-time Libraries Could be a Security Threat
A non-Internet-exposed CI/CD system is vulnerable to CSRF. A legitimate user logs into the CI/CD and does some web browsing in another tab....
Read more >
How common it is to fail builds due to security vulnerabilities?
We have some services that will break builds if vulns gets detected. But most will not do this, but rather fix the discovered...
Read more >
7 Common Issues with CI/CD and How to Fix Them | AltexSoft
A lot of sensitive information can be vulnerable within a CI/CD pipeline, which is why hackers will try to gain access to the...
Read more >
Don't be alarmed by vulnerabilities after running NPM Install
Results of running NPM install with a list of vulnerabilities found in ... @microsoft/sp-build-web & @microsoft/sp-webpart-workbench.
Read more >
New OpenSSL 3.0 vulnerabilities: What you need to ... - GitLab
CVE-2022-3786 concerns an X.509 email address variable length buffer overflow that can result in a denial of service attack. CVE-2022-3602 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found