Demo: Add vulnerable dependencies to showcase dependency review#34
Open
timothywarner wants to merge 3 commits intomainfrom
Open
Demo: Add vulnerable dependencies to showcase dependency review#34timothywarner wants to merge 3 commits intomainfrom
timothywarner wants to merge 3 commits intomainfrom
Conversation
- 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>
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Vulnerable Dependencies Added
The following packages with known CVEs have been added to package.json:
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
🤖 Generated with Claude Code