@companieshouse/ch-node-utils 3.0.9 → 3.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/package.json +16 -11
package/README.md
CHANGED
|
@@ -149,3 +149,26 @@ The navbar also requires the use of styles provided in the [ch.gov.uk.css](https
|
|
|
149
149
|
It also requires the [navbar.js](https://github.com/companieshouse/cdn.ch.gov.uk/blob/master/app/assets/javascripts/lib/navbar.js) script to be added to the footer to make the navbar work in mobile mode (make sure it's the latest version).
|
|
150
150
|
|
|
151
151
|
`<script src="{{ cdnHost }}/javascripts/lib/navbar.js"></script>`
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### Dependency Overrides
|
|
155
|
+
- **brace-expansion@5.0.8**
|
|
156
|
+
- Reason:
|
|
157
|
+
- CVE-2026-13149 affects transitive dependencies brought in by `jest` and `ts-jest`
|
|
158
|
+
- `glob@10.5.0 -> minimatch@9.0.9 -> brace-expansion@2.1.2`
|
|
159
|
+
- `test-exclude@6.0.0 -> minimatch@3.1.5 -> brace-expansion@1.1.16`
|
|
160
|
+
- No fixed versions of `glob`, `test-exclude`, `jest`, or `ts-jest` were available at the time of implementation.
|
|
161
|
+
- Mitigation:
|
|
162
|
+
- An npm override is used to force `brace-expansion@5.0.8` for all dependency paths.
|
|
163
|
+
- The application test suite was executed successfully after applying the override.
|
|
164
|
+
- Jest test execution, coverage and snapshot generation were verified to behave as expected.
|
|
165
|
+
- Risk:
|
|
166
|
+
- This override spans multiple major versions (`1.x`/`2.x` -> `5.x`).
|
|
167
|
+
- Compatibility is not guaranteed by npm and should be revalidated whenever related dependencies are upgraded.
|
|
168
|
+
- Ticket/CVE:
|
|
169
|
+
- CVE-2026-13149
|
|
170
|
+
- https://companieshouse.atlassian.net/browse/ASM-2688
|
|
171
|
+
- Remove after:
|
|
172
|
+
- Remove once glob and test-exclude has been upgraded to use >= minimatch@10.2.5.
|
|
173
|
+
- Ensure proper testing is completed after removal.
|
|
174
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@companieshouse/ch-node-utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"author": "companieshouse",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"prebuild": "rm -rf ./lib",
|
|
19
19
|
"build": "tsc",
|
|
20
20
|
"test": "jest",
|
|
21
|
-
"_lint": "eslint
|
|
22
|
-
"_lint:fix": "eslint
|
|
21
|
+
"_lint": "eslint .",
|
|
22
|
+
"_lint:fix": "eslint . --fix",
|
|
23
23
|
"coverage": "jest --coverage --forceExit --passWithNoTests",
|
|
24
24
|
"prepublishOnly": "[ ! -d node_modules ] && npm install; tsc",
|
|
25
25
|
"postpublish": "rm -rf lib"
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@companieshouse/node-session-handler": "^5.2.15",
|
|
30
|
-
"eslint": "^9.14.0",
|
|
31
30
|
"express": "^4.18.3",
|
|
32
31
|
"i18next": "^23.10.1",
|
|
33
32
|
"i18next-fs-backend": "^2.3.1",
|
|
@@ -39,23 +38,29 @@
|
|
|
39
38
|
"@types/express": "^4.17.21",
|
|
40
39
|
"@types/i18next": "^13.0.0",
|
|
41
40
|
"@types/ioredis": "4.28.10",
|
|
42
|
-
"@types/jest": "^
|
|
41
|
+
"@types/jest": "^30.0.0",
|
|
43
42
|
"@types/node": "^20.11.28",
|
|
44
43
|
"govuk-frontend-6-0-0": "npm:govuk-frontend@6.0.0",
|
|
45
|
-
"jest": "^
|
|
46
|
-
"jest-environment-jsdom": "^30.
|
|
44
|
+
"jest": "^30.4.2",
|
|
45
|
+
"jest-environment-jsdom": "^30.4.1",
|
|
47
46
|
"nunjucks": "^3.2.4",
|
|
48
|
-
"ts-jest": "^29.4.
|
|
49
|
-
"typescript": "^5.4.2"
|
|
47
|
+
"ts-jest": "^29.4.12",
|
|
48
|
+
"typescript": "^5.4.2",
|
|
49
|
+
"eslint": "10.8.0",
|
|
50
|
+
"typescript-eslint": "^8.0.0"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"govuk-frontend": "^6.0.0"
|
|
53
54
|
},
|
|
54
55
|
"overrides": {
|
|
55
|
-
"js-yaml": "^4.2.0"
|
|
56
|
+
"js-yaml": "^4.2.0",
|
|
57
|
+
"brace-expansion": "^5.0.8"
|
|
56
58
|
},
|
|
57
59
|
"bugs": {
|
|
58
60
|
"url": "https://github.com/companieshouse/ch-node-utils/issues"
|
|
59
61
|
},
|
|
60
|
-
"homepage": "https://github.com/companieshouse/ch-node-utils#readme"
|
|
62
|
+
"homepage": "https://github.com/companieshouse/ch-node-utils#readme",
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=24.18.0"
|
|
65
|
+
}
|
|
61
66
|
}
|