Skip to content

Demo: Add vulnerable dependencies to showcase dependency review#34

Open
timothywarner wants to merge 3 commits intomainfrom
demo/dependency-review-vulnerabilities
Open

Demo: Add vulnerable dependencies to showcase dependency review#34
timothywarner wants to merge 3 commits intomainfrom
demo/dependency-review-vulnerabilities

Conversation

@timothywarner
Copy link
Collaborator

Summary

  • Added multiple npm packages with known security vulnerabilities to demonstrate GitHub's dependency review feature
  • This PR intentionally includes vulnerable dependencies for educational purposes

Vulnerable Dependencies Added

The following packages with known CVEs have been added to package.json:

  1. lodash 4.17.11 - Prototype pollution vulnerabilities (CVE-2019-10744, CVE-2020-8203, CVE-2021-23337)
  2. axios 0.18.0 - SSRF and ReDoS vulnerabilities (CVE-2019-10742, CVE-2020-28168, CVE-2021-3749)
  3. minimist 1.2.0 - Prototype pollution (CVE-2020-7598, CVE-2021-44906)
  4. node-forge 0.9.1 - Signature verification bypass (CVE-2020-7720, CVE-2022-24771, CVE-2022-24772)
  5. serialize-javascript 1.7.0 - XSS vulnerabilities (CVE-2019-16769, CVE-2020-7660)
  6. jquery 3.3.1 - XSS vulnerabilities (CVE-2019-11358, CVE-2020-11022, CVE-2020-11023)
  7. bootstrap 3.3.7 - Multiple XSS vulnerabilities (CVE-2018-14040, CVE-2018-14041, CVE-2018-14042, CVE-2019-8331)
  8. angular 1.6.0 - Template injection and XSS (CVE-2019-14863, CVE-2020-7676, CVE-2022-25844, CVE-2022-25869)

Purpose

This PR is created to demonstrate how GitHub's dependency review feature works in the Files Changed tab. The vulnerability alerts will be visible in the dependency review section.

Important Note

⚠️ DO NOT MERGE - This PR is for demonstration purposes only and should not be merged into the main branch.

🤖 Generated with Claude Code

- Added lodash 4.17.11 (CVE-2019-10744, CVE-2020-8203, CVE-2021-23337)
- Added axios 0.18.0 (CVE-2019-10742, CVE-2020-28168, CVE-2021-3749)
- Added minimist 1.2.0 (CVE-2020-7598, CVE-2021-44906)
- Added node-forge 0.9.1 (CVE-2020-7720, CVE-2022-24771, CVE-2022-24772)
- Added serialize-javascript 1.7.0 (CVE-2019-16769, CVE-2020-7660)
- Added jquery 3.3.1 (CVE-2019-11358, CVE-2020-11022, CVE-2020-11023)
- Added bootstrap 3.3.7 (CVE-2018-14040, CVE-2018-14041, CVE-2018-14042, CVE-2019-8331)
- Added angular 1.6.0 (CVE-2019-14863, CVE-2020-7676, CVE-2022-25844, CVE-2022-25869)

These packages contain known security vulnerabilities that will trigger GitHub's dependency review feature.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 3, 2025 18:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR intentionally introduces multiple npm packages with known security vulnerabilities to demonstrate GitHub's dependency review functionality for educational purposes.

  • Adds 8 vulnerable npm packages with various CVEs including prototype pollution, XSS, SSRF, and signature verification bypass vulnerabilities
  • Packages span different categories (utility libraries, HTTP clients, UI frameworks) with versions containing documented security issues
  • Serves as a demonstration tool for security review processes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +17 to +24
"lodash": "4.17.11",
"axios": "0.18.0",
"minimist": "1.2.0",
"node-forge": "0.9.1",
"serialize-javascript": "1.7.0",
"jquery": "3.3.1",
"bootstrap": "3.3.7",
"angular": "1.6.0"
Copy link

Copilot AI Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These dependencies contain known security vulnerabilities including prototype pollution (lodash, minimist), SSRF/ReDoS (axios), signature verification bypass (node-forge), XSS vulnerabilities (serialize-javascript, jquery, bootstrap), and template injection (angular). While this PR is for demonstration purposes, these vulnerable versions should never be used in production code.

Suggested change
"lodash": "4.17.11",
"axios": "0.18.0",
"minimist": "1.2.0",
"node-forge": "0.9.1",
"serialize-javascript": "1.7.0",
"jquery": "3.3.1",
"bootstrap": "3.3.7",
"angular": "1.6.0"
"angular": "1.8.3"

Copilot uses AI. Check for mistakes.
timothywarner and others added 2 commits September 3, 2025 17:50
Created ghas-showcase.sh with 12 sections demonstrating:
- Code scanning with CodeQL (alerts, analyses, SARIF)
- Secret scanning (detection, resolution, push protection)
- Dependency scanning with Dependabot (vulnerabilities, updates)
- Security policies and advisories
- GitHub Copilot CLI features (explain, suggest, fix)
- Repository-specific practical examples
- Security automation with workflows
- Security insights and metrics
- CI/CD security integration
- Advanced Copilot usage patterns
- Security reporting and documentation generation
- Useful aliases and functions

Each section contains extensively commented examples that work with the timothywarner-org/glob-web-pilot repository. Examples show both GHAS security features and Copilot AI assistance capabilities accessible through the gh CLI.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added Section 13 with 14 advanced GraphQL examples including:
- Complete security overview queries
- Detailed vulnerability information with CVSS scores
- Dependabot alerts with pagination support
- Organization-wide security metrics
- PR security status checks
- Global advisory database searches
- Specific CVE/GHSA lookups
- Security events timeline
- Dependency graph manifests
- Automated security fixes status
- Security policy compliance checks

Each GraphQL query demonstrates how to extract deep security insights from GitHub's API, showing fields like severity, CVSS vectors, CWE mappings, and remediation information.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant

Comments