Skip to content

Commit 8bf1f55

Browse files
committed
chore(FR-1733): apply OWASP dependency-check security fixes and configure pnpm minimumReleaseAge (#4719)
Resolves #4718 ([FR-1733](https://lablup.atlassian.net/browse/FR-1733)) ## Summary This PR addresses security vulnerabilities identified by OWASP dependency-check scanning and improves dependency management practices. ## Changes **Security Updates:** - Upgrade `@babel/core` from `^7.25.2` to `^7.28.5` - Add security patch for `ansi_up@6.0.6` - Update pnpm overrides to fix `tar-fs` and `node-forge` vulnerabilities - Remove obsolete dependency overrides (`eslint`, `zod`, `cross-spawn`) **Configuration:** - Set `minimumReleaseAge: 10080` (7 days) in pnpm-workspace.yaml to prevent automatic adoption of newly published packages with potential zero-day vulnerabilities ## Impact - Resolves security vulnerabilities identified in OWASP dependency-check - Reduces exposure to zero-day vulnerabilities from hastily-released packages - Improves dependency configuration maintainability **Checklist:** - [x] Security vulnerabilities addressed - [x] Dependency configuration cleaned up - [ ] Build verification required - [ ] No runtime behavior changes expected [FR-1733]: https://lablup.atlassian.net/browse/FR-1733?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent f4bf222 commit 8bf1f55

File tree

7 files changed

+1122
-2546
lines changed

7 files changed

+1122
-2546
lines changed

.claude/commands/create-jira-issue.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@ Based on the argument provided:
2525
- **commit**: Use `git diff HEAD~1..HEAD` to get latest commit changes
2626

2727
### Jira Issue Creation
28-
- You do **not** have to include a summary of changed files or key modifications in the issue description. Instead, focus on describing the background or purpose for which a PR is needed.
28+
- **IMPORTANT**: The issue description should explain **WHY** this work is needed (background, purpose, motivation), **NOT HOW** to do it (implementation details, step-by-step instructions).
29+
- Focus on:
30+
- The problem or need that triggered this work
31+
- Business or technical justification
32+
- Context and background information
33+
- Expected outcomes or goals
34+
- Do **NOT** include:
35+
- Implementation steps or "how to do it" instructions
36+
- Detailed lists of file changes or code modifications
37+
- Technical execution details (these belong in the PR description)
2938
- Whenever possible, follow the recommended Jira title and description format for Story, Task, or Bug issues.
3039
- Please determine the appropriate Jira issue type (Story, Task, or Bug) based on the content.
3140
- **Before creating the Jira issue, display the issue content (title, description, type) in a readable format on screen for user review**

.claude/commands/create-pr-stack-for-stage.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ git diff --cached
8080
8181
# Create new branch for staged changes
8282
gt create feat/FR-1234-implement-feature -m "feat(FR-1234): implement new feature functionality"
83-
84-
# IMPORTANT: Ask user for confirmation before submitting
85-
# Review changes and commit message with user first
86-
# Then submit stack for review
8783
gt stack submit
8884
```
8985

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"winston": "^3.14.0"
107107
},
108108
"devDependencies": {
109-
"@babel/core": "^7.25.2",
109+
"@babel/core": "^7.28.5",
110110
"@babel/parser": "^7.25.3",
111111
"@babel/plugin-proposal-class-properties": "^7.18.6",
112112
"@babel/plugin-proposal-decorators": "^7.24.7",
@@ -178,13 +178,10 @@
178178
"workbox-sw": "^7.1.0",
179179
"ws": "^8.18.0"
180180
},
181-
"overrides": {
182-
"eslint": "^8.57.1"
183-
},
184181
"pnpm": {
185182
"overrides": {
186-
"zod": "^4.0.0",
187-
"cross-spawn": "^7.0.6"
183+
"tar-fs@2": "2.1.4",
184+
"node-forge": ">=1.3.2"
188185
}
189186
},
190187
"vaadin": {

pnpm-lock.yaml

Lines changed: 1081 additions & 2530 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ patchedDependencies:
1919
"@cloudscape-design/board-components@3.0.60": react/patches/@cloudscape-design__board-components@3.0.60.patch
2020
rc-field-form@2.7.1: react/patches/rc-field-form.patch
2121
react-scripts@5.0.1: react/patches/react-scripts@5.0.1.patch
22+
ansi_up@6.0.6: react/patches/ansi_up@6.0.6.patch
23+
24+
minimumReleaseAge: 10080
2225

23-
minimumReleaseAge: 4320

react/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "25.18.0-alpha.0",
44
"private": true,
55
"dependencies": {
6-
"@ai-sdk/openai": "^2.0.72",
7-
"@ai-sdk/react": "^2.0.101",
6+
"@ai-sdk/openai": "^2.0.69",
7+
"@ai-sdk/react": "^2.0.97",
88
"@ant-design/charts": "^2.6.6",
99
"@ant-design/colors": "^7.2.1",
1010
"@ant-design/cssinjs": "^1.24.0",
@@ -26,7 +26,7 @@
2626
"@uiw/codemirror-extensions-langs": "^4.25.2",
2727
"@uiw/react-codemirror": "^4.25.2",
2828
"ahooks": "^3.9.6",
29-
"ai": "^5.0.101",
29+
"ai": "^5.0.97",
3030
"ansi_up": "^6.0.6",
3131
"antd": "^5.28.0",
3232
"antd-style": "^3.7.1",
@@ -143,7 +143,7 @@
143143
]
144144
},
145145
"devDependencies": {
146-
"@babel/core": "^7.27.3",
146+
"@babel/core": "^7.28.5",
147147
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
148148
"@babel/plugin-syntax-import-attributes": "^7.26.0",
149149
"@babel/preset-env": "^7.28.0",

react/patches/ansi_up@6.0.6.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/examples/browser.html b/examples/browser.html
2+
deleted file mode 100644
3+
index c59d3941ff490cde0e23490d5d4b79ccb0e577c4..0000000000000000000000000000000000000000
4+
diff --git a/examples/browser_amd.html b/examples/browser_amd.html
5+
deleted file mode 100644
6+
index ddd981d9bb754a1ccc773ac56b06939285af543b..0000000000000000000000000000000000000000
7+
diff --git a/examples/jquery-1.7.2.min.js b/examples/jquery-1.7.2.min.js
8+
deleted file mode 100644
9+
index 16ad06c5acaad09ee4d6e9d7c428506db028aeeb..0000000000000000000000000000000000000000
10+
diff --git a/examples/main.js b/examples/main.js
11+
deleted file mode 100644
12+
index a6a9f2836478e55c2f816bc370ca5269a860034b..0000000000000000000000000000000000000000
13+
diff --git a/examples/require.js b/examples/require.js
14+
deleted file mode 100644
15+
index ba19fefece1584c15d677e6a8962265f82249d27..0000000000000000000000000000000000000000
16+
diff --git a/examples/theme.css b/examples/theme.css
17+
deleted file mode 100644
18+
index 5837e1dc877ddbdf51bc1d93fbcb9cbee3ffdf34..0000000000000000000000000000000000000000
19+
diff --git a/examples/theme.scss b/examples/theme.scss
20+
deleted file mode 100644
21+
index e21a4d8769d58c50594b3772b95500b67dc95f04..0000000000000000000000000000000000000000

0 commit comments

Comments
 (0)