Skip to content

Conversation

@nithinmohantk
Copy link
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • exercises/udacity-c2-frontend/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Insertion of Sensitive Information Into Sent Data
SNYK-JS-ANGULARCOMMON-14135651
  671  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@qodo-code-review
Copy link

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: build (12.x)

Failed stage: Run cd exercises/udacity-c2-restapi/ && npm ci [❌]

Failure summary:

The action failed during npm ci in exercises/udacity-c2-restapi/ because installing bcrypt@3.0.8
failed to build native bindings with node-gyp.
- Prebuilt binaries for bcrypt@3.0.8 were unavailable
for node@12.22.12, so it fell back to source compile.
- node-gyp crashed while loading binding.gyp
with ValueError: invalid mode: 'rU' (Python universal newline mode), causing gyp to exit with code
1.
- This caused npm ERR! bcrypt@3.0.8 install to fail and the workflow to exit with code 1.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

530:  v12.22.12
531:  [command]/opt/hostedtoolcache/node/12.22.12/x64/bin/npm --version
532:  6.14.16
533:  ##[group]Run cd exercises/udacity-c2-restapi/
534:  �[36;1mcd exercises/udacity-c2-restapi/�[0m
535:  shell: /usr/bin/bash -e {0}
536:  ##[endgroup]
537:  ##[group]Run cd exercises/udacity-c2-restapi/ && npm ci
538:  �[36;1mcd exercises/udacity-c2-restapi/ && npm ci�[0m
539:  shell: /usr/bin/bash -e {0}
540:  ##[endgroup]
541:  > bcrypt@3.0.8 install /home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt
542:  > node-pre-gyp install --fallback-to-build
543:  node-pre-gyp WARN Using needle for node-pre-gyp https download 
544:  node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.8 and node@12.22.12 (node-v72 ABI, glibc) (falling back to source compile with node-gyp) 
545:  node-pre-gyp WARN Hit error Remote end closed socket abruptly. 
546:  Traceback (most recent call last):
...

555:  ^^^^^^^^^^^^^^
556:  File "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 520, in gyp_main
557:  [generator, flat_list, targets, data] = Load(
558:  ^^^^^
559:  File "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 136, in Load
560:  result = gyp.input.Load(build_files, default_variables, includes[:],
561:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
562:  File "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2782, in Load
563:  LoadTargetBuildFile(build_file, data, aux_data,
564:  File "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 391, in LoadTargetBuildFile
565:  build_file_data = LoadOneBuildFile(build_file_path, data, aux_data,
566:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
567:  File "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 234, in LoadOneBuildFile
568:  build_file_contents = open(build_file_path, 'rU').read()
569:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
570:  ValueError: invalid mode: 'rU' while trying to load binding.gyp
571:  gyp ERR! configure error 
572:  gyp ERR! stack Error: `gyp` failed with exit code: 1
573:  gyp ERR! stack     at ChildProcess.onCpExit (/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
574:  gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
575:  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
576:  gyp ERR! System Linux 6.11.0-1018-azure
577:  gyp ERR! command "/opt/hostedtoolcache/node/12.22.12/x64/bin/node" "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt/lib/binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
578:  gyp ERR! cwd /home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt
579:  gyp ERR! node -v v12.22.12
580:  gyp ERR! node-gyp -v v5.1.0
581:  gyp ERR! not ok 
582:  node-pre-gyp ERR! build error 
583:  node-pre-gyp ERR! stack Error: Failed to execute '/opt/hostedtoolcache/node/12.22.12/x64/bin/node /opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt/lib/binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
584:  node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
585:  node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
586:  node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1022:16)
587:  node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
588:  node-pre-gyp ERR! System Linux 6.11.0-1018-azure
589:  node-pre-gyp ERR! command "/opt/hostedtoolcache/node/12.22.12/x64/bin/node" "/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
590:  node-pre-gyp ERR! cwd /home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt
591:  node-pre-gyp ERR! node -v v12.22.12
592:  node-pre-gyp ERR! node-pre-gyp -v v0.14.0
593:  node-pre-gyp ERR! not ok 
594:  Failed to execute '/opt/hostedtoolcache/node/12.22.12/x64/bin/node /opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/home/runner/work/udacity-aws-developer-project-workspace/udacity-aws-developer-project-workspace/exercises/udacity-c2-restapi/node_modules/bcrypt/lib/binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
595:  npm ERR! code ELIFECYCLE
596:  npm ERR! errno 1
597:  npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build`
598:  npm ERR! Exit status 1
599:  npm ERR! 
600:  npm ERR! Failed at the bcrypt@3.0.8 install script.
601:  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
602:  npm ERR! A complete log of this run can be found in:
603:  npm ERR!     /home/runner/.npm/_logs/2025-12-01T09_03_29_119Z-debug.log
604:  ##[error]Process completed with exit code 1.
605:  Post job cleanup.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants