mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
chore(deps): deps-security-agent run 2026-02-22
- Upgraded eslint to 10.0.1 (patch) - Generated security reports and run artifacts - Documented minimatch/ajv vulnerabilities - Created task completion log Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
cd1c9406cd
commit
96c79c8bc7
11 files changed
+260
-68
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# Memory Update — deps-security-agent — 2026-02-22
|
||||
|
||||
## Key findings
|
||||
- `eslint` was successfully upgraded from 10.0.0 to 10.0.1 (patch).
|
||||
- `minimatch` (High) and `ajv` (Moderate) vulnerabilities detected (ReDoS).
|
||||
|
||||
## Patterns / reusable knowledge
|
||||
- Safe patch upgrades for devDependencies like `eslint` are low risk and pass tests reliably.
|
||||
- `npm audit` findings for `minimatch` and `ajv` persist and may require deeper dependency tree updates or `npm audit fix`.
|
||||
|
||||
## Warnings / gotchas
|
||||
- `npm audit` exit code 1 must be handled gracefully in scripts.
|
||||
Generated
+38
-67
@@ -17,7 +17,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"eslint": "^10.0.0",
|
||||
"eslint": "^10.0.1",
|
||||
"globals": "^17.3.0"
|
||||
},
|
||||
"engines": {
|
||||
@@ -67,15 +67,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@eslint/config-array": {
|
||||
"version": "0.23.1",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.1.tgz",
|
||||
"integrity": "sha512-uVSdg/V4dfQmTjJzR0szNczjOH/J+FyUMMjYtr07xFRXR7EDf9i1qdxrD0VusZH9knj1/ecxzCQQxyic5NzAiA==",
|
||||
"version": "0.23.2",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.2.tgz",
|
||||
"integrity": "sha512-YF+fE6LV4v5MGWRGj7G404/OZzGNepVF8fxk7jqmqo3lrza7a0uUcDnROGRBG1WFC1omYUS/Wp1f42i0M+3Q3A==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@eslint/object-schema": "^3.0.1",
|
||||
"@eslint/object-schema": "^3.0.2",
|
||||
"debug": "^4.3.1",
|
||||
"minimatch": "^10.1.1"
|
||||
"minimatch": "^10.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.19.0 || ^22.13.0 || >=24"
|
||||
@@ -129,9 +129,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@eslint/object-schema": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.1.tgz",
|
||||
"integrity": "sha512-P9cq2dpr+LU8j3qbLygLcSZrl2/ds/pUpfnHNNuk5HW7mnngHs+6WSq5C9mO3rqRX8A1poxqLTC9cu0KOyJlBg==",
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.2.tgz",
|
||||
"integrity": "sha512-HOy56KJt48Bx8KmJ+XGQNSUMT/6dZee/M54XyUyuvTvPXJmsERRvBchsUVx1UMe1WwIH49XLAczNC7V2INsuUw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
@@ -204,16 +204,6 @@
|
||||
"url": "https://github.com/sponsors/nzakas"
|
||||
}
|
||||
},
|
||||
"node_modules/@isaacs/cliui": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz",
|
||||
"integrity": "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==",
|
||||
"dev": true,
|
||||
"license": "BlueOak-1.0.0",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@noble/ciphers": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-2.1.1.tgz",
|
||||
@@ -311,9 +301,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/acorn": {
|
||||
"version": "8.15.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"version": "8.16.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
|
||||
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
@@ -351,14 +341,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/balanced-match": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.2.tgz",
|
||||
"integrity": "sha512-x0K50QvKQ97fdEz2kPehIerj+YTeptKF9hyYkKf6egnwmMWAkADiO0QCzSp0R5xN8FTZgYaBfSaue46Ej62nMg==",
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.3.tgz",
|
||||
"integrity": "sha512-1pHv8LX9CpKut1Zp4EXey7Z8OfH11ONNH6Dhi2WDUt31VVZFXZzKwXcysBgqSumFCmR+0dqjMK5v5JiFHzi0+g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"jackspeak": "^4.2.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
}
|
||||
@@ -430,15 +417,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.0.0.tgz",
|
||||
"integrity": "sha512-O0piBKY36YSJhlFSG8p9VUdPV/SxxS4FYDWVpr/9GJuMaepzwlf4J8I4ov1b+ySQfDTPhc3DtLaxcT1fN0yqCg==",
|
||||
"version": "10.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.0.1.tgz",
|
||||
"integrity": "sha512-20MV9SUdeN6Jd84xESsKhRly+/vxI+hwvpBMA93s+9dAcjdCuCojn4IqUGS3lvVaqjVYGYHSRMCpeFtF2rQYxQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.8.0",
|
||||
"@eslint-community/regexpp": "^4.12.2",
|
||||
"@eslint/config-array": "^0.23.0",
|
||||
"@eslint/config-array": "^0.23.2",
|
||||
"@eslint/config-helpers": "^0.5.2",
|
||||
"@eslint/core": "^1.1.0",
|
||||
"@eslint/plugin-kit": "^0.6.0",
|
||||
@@ -450,9 +437,9 @@
|
||||
"cross-spawn": "^7.0.6",
|
||||
"debug": "^4.3.2",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"eslint-scope": "^9.1.0",
|
||||
"eslint-visitor-keys": "^5.0.0",
|
||||
"espree": "^11.1.0",
|
||||
"eslint-scope": "^9.1.1",
|
||||
"eslint-visitor-keys": "^5.0.1",
|
||||
"espree": "^11.1.1",
|
||||
"esquery": "^1.7.0",
|
||||
"esutils": "^2.0.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
@@ -463,7 +450,7 @@
|
||||
"imurmurhash": "^0.1.4",
|
||||
"is-glob": "^4.0.0",
|
||||
"json-stable-stringify-without-jsonify": "^1.0.1",
|
||||
"minimatch": "^10.1.1",
|
||||
"minimatch": "^10.2.1",
|
||||
"natural-compare": "^1.4.0",
|
||||
"optionator": "^0.9.3"
|
||||
},
|
||||
@@ -486,9 +473,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-scope": {
|
||||
"version": "9.1.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.0.tgz",
|
||||
"integrity": "sha512-CkWE42hOJsNj9FJRaoMX9waUFYhqY4jmyLFdAdzZr6VaCg3ynLYx4WnOdkaIifGfH4gsUcBTn4OZbHXkpLD0FQ==",
|
||||
"version": "9.1.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.1.tgz",
|
||||
"integrity": "sha512-GaUN0sWim5qc8KVErfPBWmc31LEsOkrUJbvJZV+xuL3u2phMUK4HIvXlWAakfC8W4nzlK+chPEAkYOYb5ZScIw==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
@@ -505,9 +492,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-visitor-keys": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.0.tgz",
|
||||
"integrity": "sha512-A0XeIi7CXU7nPlfHS9loMYEKxUaONu/hTEzHTGba9Huu94Cq1hPivf+DE5erJozZOky0LfvXAyrV/tcswpLI0Q==",
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
|
||||
"integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
@@ -518,15 +505,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/espree": {
|
||||
"version": "11.1.0",
|
||||
"resolved": "https://registry.npmjs.org/espree/-/espree-11.1.0.tgz",
|
||||
"integrity": "sha512-WFWYhO1fV4iYkqOOvq8FbqIhr2pYfoDY0kCotMkDeNtGpiGGkZ1iov2u8ydjtgM8yF8rzK7oaTbw2NAzbAbehw==",
|
||||
"version": "11.1.1",
|
||||
"resolved": "https://registry.npmjs.org/espree/-/espree-11.1.1.tgz",
|
||||
"integrity": "sha512-AVHPqQoZYc+RUM4/3Ly5udlZY/U4LS8pIG05jEjWM2lQMU/oaZ7qshzAl2YP1tfNmXfftH3ohurfwNAug+MnsQ==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
"acorn": "^8.15.0",
|
||||
"acorn": "^8.16.0",
|
||||
"acorn-jsx": "^5.3.2",
|
||||
"eslint-visitor-keys": "^5.0.0"
|
||||
"eslint-visitor-keys": "^5.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.19.0 || ^22.13.0 || >=24"
|
||||
@@ -729,22 +716,6 @@
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/jackspeak": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.2.3.tgz",
|
||||
"integrity": "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==",
|
||||
"dev": true,
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"@isaacs/cliui": "^9.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/json-buffer": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
|
||||
@@ -807,16 +778,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/minimatch": {
|
||||
"version": "10.2.0",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.0.tgz",
|
||||
"integrity": "sha512-ugkC31VaVg9cF0DFVoADH12k6061zNZkZON+aX8AWsR9GhPcErkcMBceb6znR8wLERM2AkkOxy2nWRLpT9Jq5w==",
|
||||
"version": "10.2.2",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.2.tgz",
|
||||
"integrity": "sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==",
|
||||
"dev": true,
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^5.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
"node": "18 || 20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"eslint": "^10.0.0",
|
||||
"eslint": "^10.0.1",
|
||||
"globals": "^17.3.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
# Dependency Security Report — 2026-02-22
|
||||
|
||||
## Executive Summary
|
||||
- **Date:** 2026-02-22
|
||||
- **Agent:** deps-security-agent
|
||||
- **Scope:** Daily dependency audit
|
||||
|
||||
## Vulnerabilities (NPM Audit)
|
||||
### Summary
|
||||
- **Total:** 2
|
||||
- **High:** 1
|
||||
- **Moderate:** 1
|
||||
- **Low:** 0
|
||||
- **Info:** 0
|
||||
|
||||
### Details
|
||||
- **minimatch** (High): ReDoS vulnerability. Fixed in 10.2.1.
|
||||
- **ajv** (Moderate): ReDoS via `$data`. Fixed in 6.14.0.
|
||||
|
||||
## Outdated Packages (NPM Outdated)
|
||||
### Direct Dependencies
|
||||
- **eslint**: 10.0.0 -> 10.0.1 (Patch upgrade available).
|
||||
|
||||
## Actions Taken / Planned
|
||||
1. Attempting safe upgrade for `eslint` (patch version bump).
|
||||
2. Documented vulnerabilities for follow-up.
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {
|
||||
"ajv": {
|
||||
"name": "ajv",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1113398,
|
||||
"name": "ajv",
|
||||
"dependency": "ajv",
|
||||
"title": "ajv has ReDoS when using `$data` option",
|
||||
"url": "https://github.com/advisories/GHSA-2g4f-4pwh-qvx6",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-400"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 0,
|
||||
"vectorString": null
|
||||
},
|
||||
"range": "<6.14.0"
|
||||
}
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<6.14.0",
|
||||
"nodes": [
|
||||
"node_modules/ajv"
|
||||
],
|
||||
"fixAvailable": true
|
||||
},
|
||||
"minimatch": {
|
||||
"name": "minimatch",
|
||||
"severity": "high",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1113371,
|
||||
"name": "minimatch",
|
||||
"dependency": "minimatch",
|
||||
"title": "minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern",
|
||||
"url": "https://github.com/advisories/GHSA-3ppc-4f35-3m26",
|
||||
"severity": "high",
|
||||
"cwe": [
|
||||
"CWE-1333"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 0,
|
||||
"vectorString": null
|
||||
},
|
||||
"range": "<10.2.1"
|
||||
}
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<10.2.1",
|
||||
"nodes": [
|
||||
"node_modules/minimatch"
|
||||
],
|
||||
"fixAvailable": true
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 1,
|
||||
"high": 1,
|
||||
"critical": 0,
|
||||
"total": 2
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 10,
|
||||
"dev": 72,
|
||||
"optional": 0,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 81
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"eslint": {
|
||||
"current": "10.0.0",
|
||||
"wanted": "10.0.1",
|
||||
"latest": "10.0.1",
|
||||
"dependent": "app",
|
||||
"location": "/app/node_modules/eslint"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
Agent: deps-security-agent
|
||||
Cadence: daily
|
||||
Run-Start: 2026-02-22T00:10:00Z
|
||||
Prompt: src/prompts/daily/deps-security-agent.md
|
||||
Platform: linux
|
||||
Node Version: v22.22.0
|
||||
Package Manager: npm
|
||||
---
|
||||
|
||||
# Run Context — deps-security-agent — 2026-02-22
|
||||
|
||||
## Goal
|
||||
Perform daily security audit and dependency maintenance.
|
||||
|
||||
## Scope
|
||||
- Scan `package.json` and `package-lock.json`.
|
||||
- Identify vulnerabilities and outdated packages.
|
||||
- Attempt safe upgrades for direct dependencies.
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
Agent: deps-security-agent
|
||||
Cadence: daily
|
||||
Run-Start: 2026-02-22T00:10:00Z
|
||||
Prompt: src/prompts/daily/deps-security-agent.md
|
||||
---
|
||||
|
||||
# Decisions — deps-security-agent — 2026-02-22
|
||||
|
||||
## Triage
|
||||
- **Outdated:** `eslint` (10.0.0 -> 10.0.1). Safe patch upgrade.
|
||||
- **Vulnerabilities:**
|
||||
- `minimatch`: High severity (ReDoS).
|
||||
- `ajv`: Moderate severity (ReDoS).
|
||||
|
||||
## Decisions
|
||||
1. **Upgrade `eslint`**: Safe patch version bump. Attempted and **verified**. Tests passed.
|
||||
2. **Audit Findings**: Flagged for future remediation. Will document in TODO.
|
||||
|
||||
## Rationale
|
||||
- `eslint` bump is minimal risk (patch version).
|
||||
- `minimatch` and `ajv` likely require `npm audit fix` or deep dependency updates, which are better handled separately or in a follow-up if simple fix works. For now, we prioritize the direct dependency upgrade.
|
||||
@@ -0,0 +1,25 @@
|
||||
---
|
||||
Agent: deps-security-agent
|
||||
Cadence: daily
|
||||
Run-Start: 2026-02-22T00:10:00Z
|
||||
Prompt: src/prompts/daily/deps-security-agent.md
|
||||
---
|
||||
|
||||
# Test Logs — deps-security-agent — 2026-02-22
|
||||
|
||||
## Execution History
|
||||
|
||||
### Step 1: Baseline Check
|
||||
- `npm run lock:check:daily` (Status: OK)
|
||||
|
||||
### Step 2: Security Scan
|
||||
- `npm ci` (Status: OK)
|
||||
- `npm audit --json` (Status: Vulnerabilities found - see report)
|
||||
- `npm outdated --json` (Status: Outdated packages found - see report)
|
||||
|
||||
### Step 3: Upgrade Execution
|
||||
- `npm install [email protected]` (Status: Success)
|
||||
- `npm test` (Status: Passed)
|
||||
- Duration: ~14.5s
|
||||
- Passed: 372
|
||||
- Failures: 0
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
Agent: deps-security-agent
|
||||
Cadence: daily
|
||||
Run-Start: 2026-02-22T00:10:00Z
|
||||
Prompt: src/prompts/daily/deps-security-agent.md
|
||||
---
|
||||
|
||||
# TODO — deps-security-agent — 2026-02-22
|
||||
|
||||
## Active Tasks
|
||||
- [ ] Upgrade `eslint` to 10.0.1
|
||||
- [ ] Investigate `minimatch` (High) vulnerability remediation
|
||||
- [ ] Investigate `ajv` (Moderate) vulnerability remediation
|
||||
|
||||
## Backlog
|
||||
- Configure Renovate/Dependabot if not present.
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
agent: deps-security-agent
|
||||
platform: linux
|
||||
---
|
||||
# deps-security-agent — 2026-02-22
|
||||
|
||||
Run successfully completed.
|
||||
|
||||
## Learnings
|
||||
- Upgraded `eslint` to 10.0.1 (patch).
|
||||
- Identified `minimatch` and `ajv` vulnerabilities (ReDoS) for future remediation.
|
||||
Reference in new issue
Block a user