@fabasoad/sarif-to-slack 0.2.5 → 1.1.0
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/.github/workflows/release.yml +1 -1
- package/.github/workflows/security.yml +0 -1
- package/.github/workflows/send-sarif-to-slack.yml +145 -73
- package/.gitleaksignore +8 -0
- package/.pre-commit-config.yaml +3 -3
- package/.tool-versions +1 -1
- package/dist/Logger.js +4 -1
- package/dist/SarifToSlackClient.d.ts +33 -0
- package/dist/SarifToSlackClient.d.ts.map +1 -0
- package/dist/SarifToSlackClient.js +178 -0
- package/dist/SlackMessageBuilder.js +34 -82
- package/dist/System.d.ts +1 -3
- package/dist/System.d.ts.map +1 -1
- package/dist/System.js +10 -3
- package/dist/index.cjs +826 -472
- package/dist/index.d.ts +35 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -12
- package/dist/model/Color.d.ts +80 -0
- package/dist/model/Color.d.ts.map +1 -0
- package/dist/model/Color.js +106 -0
- package/dist/model/Finding.d.ts +2 -0
- package/dist/model/Finding.d.ts.map +1 -0
- package/dist/model/Finding.js +93 -0
- package/dist/model/FindingsArray.d.ts +2 -0
- package/dist/model/FindingsArray.d.ts.map +1 -0
- package/dist/model/FindingsArray.js +24 -0
- package/dist/processors/CodeQLProcessor.d.ts +2 -0
- package/dist/processors/CodeQLProcessor.d.ts.map +1 -0
- package/dist/processors/CodeQLProcessor.js +17 -0
- package/dist/processors/CommonProcessor.d.ts +2 -0
- package/dist/processors/CommonProcessor.d.ts.map +1 -0
- package/dist/processors/CommonProcessor.js +84 -0
- package/dist/processors/ProcessorFactory.d.ts +2 -0
- package/dist/processors/ProcessorFactory.d.ts.map +1 -0
- package/dist/processors/ProcessorFactory.js +22 -0
- package/dist/processors/SnykProcessor.d.ts +2 -0
- package/dist/processors/SnykProcessor.d.ts.map +1 -0
- package/dist/processors/SnykProcessor.js +18 -0
- package/dist/representations/CompactGroupByRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByRepresentation.js +58 -0
- package/dist/representations/CompactGroupByRunPerLevelRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByRunPerLevelRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByRunPerLevelRepresentation.js +13 -0
- package/dist/representations/CompactGroupByRunPerSeverityRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByRunPerSeverityRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByRunPerSeverityRepresentation.js +13 -0
- package/dist/representations/CompactGroupByRunRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByRunRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByRunRepresentation.js +39 -0
- package/dist/representations/CompactGroupBySarifPerLevelRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupBySarifPerLevelRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupBySarifPerLevelRepresentation.js +13 -0
- package/dist/representations/CompactGroupBySarifPerSeverityRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupBySarifPerSeverityRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupBySarifPerSeverityRepresentation.js +13 -0
- package/dist/representations/CompactGroupBySarifRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupBySarifRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupBySarifRepresentation.js +40 -0
- package/dist/representations/CompactGroupByToolNamePerLevelRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByToolNamePerLevelRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByToolNamePerLevelRepresentation.js +13 -0
- package/dist/representations/CompactGroupByToolNamePerSeverityRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByToolNamePerSeverityRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByToolNamePerSeverityRepresentation.js +13 -0
- package/dist/representations/CompactGroupByToolNameRepresentation.d.ts +2 -0
- package/dist/representations/CompactGroupByToolNameRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactGroupByToolNameRepresentation.js +39 -0
- package/dist/representations/CompactTotalPerLevelRepresentation.d.ts +2 -0
- package/dist/representations/CompactTotalPerLevelRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactTotalPerLevelRepresentation.js +13 -0
- package/dist/representations/CompactTotalPerSeverityRepresentation.d.ts +2 -0
- package/dist/representations/CompactTotalPerSeverityRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactTotalPerSeverityRepresentation.js +13 -0
- package/dist/representations/CompactTotalRepresentation.d.ts +2 -0
- package/dist/representations/CompactTotalRepresentation.d.ts.map +1 -0
- package/dist/representations/CompactTotalRepresentation.js +25 -0
- package/dist/representations/Representation.d.ts +2 -0
- package/dist/representations/Representation.d.ts.map +1 -0
- package/dist/representations/Representation.js +28 -0
- package/dist/representations/RepresentationFactory.d.ts +2 -0
- package/dist/representations/RepresentationFactory.d.ts.map +1 -0
- package/dist/representations/RepresentationFactory.js +37 -0
- package/dist/sarif-to-slack.d.ts +347 -85
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types.d.ts +215 -51
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +225 -33
- package/dist/utils/Comparators.d.ts +2 -0
- package/dist/utils/Comparators.d.ts.map +1 -0
- package/dist/utils/Comparators.js +18 -0
- package/dist/utils/ExtendedArray.d.ts +2 -0
- package/dist/utils/ExtendedArray.d.ts.map +1 -0
- package/dist/utils/ExtendedArray.js +11 -0
- package/dist/utils/FileUtils.d.ts +2 -0
- package/dist/utils/FileUtils.d.ts.map +1 -0
- package/dist/utils/FileUtils.js +51 -0
- package/dist/utils/SarifUtils.js +20 -54
- package/etc/sarif-to-slack.api.md +162 -99
- package/jest.config.json +2 -2
- package/package.json +7 -7
- package/scripts/save-metadata.sh +12 -10
- package/src/Logger.ts +4 -0
- package/src/SarifToSlackClient.ts +202 -0
- package/src/SlackMessageBuilder.ts +35 -115
- package/src/System.ts +9 -2
- package/src/index.ts +47 -20
- package/src/model/Color.ts +195 -0
- package/src/model/Finding.ts +137 -0
- package/src/model/FindingsArray.ts +27 -0
- package/src/processors/CodeQLProcessor.ts +19 -0
- package/src/processors/CommonProcessor.ts +103 -0
- package/src/processors/ProcessorFactory.ts +23 -0
- package/src/processors/SnykProcessor.ts +19 -0
- package/src/representations/CompactGroupByRepresentation.ts +67 -0
- package/src/representations/CompactGroupByRunPerLevelRepresentation.ts +14 -0
- package/src/representations/CompactGroupByRunPerSeverityRepresentation.ts +14 -0
- package/src/representations/CompactGroupByRunRepresentation.ts +44 -0
- package/src/representations/CompactGroupBySarifPerLevelRepresentation.ts +15 -0
- package/src/representations/CompactGroupBySarifPerSeverityRepresentation.ts +15 -0
- package/src/representations/CompactGroupBySarifRepresentation.ts +45 -0
- package/src/representations/CompactGroupByToolNamePerLevelRepresentation.ts +15 -0
- package/src/representations/CompactGroupByToolNamePerSeverityRepresentation.ts +15 -0
- package/src/representations/CompactGroupByToolNameRepresentation.ts +44 -0
- package/src/representations/CompactTotalPerLevelRepresentation.ts +14 -0
- package/src/representations/CompactTotalPerSeverityRepresentation.ts +14 -0
- package/src/representations/CompactTotalRepresentation.ts +27 -0
- package/src/representations/Representation.ts +35 -0
- package/src/representations/RepresentationFactory.ts +49 -0
- package/src/types.ts +270 -53
- package/src/utils/Comparators.ts +19 -0
- package/src/utils/ExtendedArray.ts +11 -0
- package/src/utils/FileUtils.ts +60 -0
- package/src/utils/SarifUtils.ts +20 -72
- package/test-data/sarif/codeql-python.sarif +1448 -1
- package/test-data/sarif/codeql-typescript.sarif +3474 -1
- package/test-data/sarif/grype-github-actions.sarif +65 -0
- package/test-data/sarif/osv-scanner-composer.sarif +972 -0
- package/test-data/sarif/osv-scanner-container.sarif +2278 -0
- package/test-data/sarif/osv-scanner-gomodules.sarif +813 -0
- package/test-data/sarif/osv-scanner-hex.sarif +147 -0
- package/test-data/sarif/osv-scanner-maven.sarif +171 -0
- package/test-data/sarif/osv-scanner-npm.sarif +627 -0
- package/test-data/sarif/osv-scanner-pip.sarif +206 -0
- package/test-data/sarif/osv-scanner-pipenv.sarif +243 -0
- package/test-data/sarif/osv-scanner-pnpm.sarif +174 -0
- package/test-data/sarif/osv-scanner-poetry.sarif +1893 -0
- package/test-data/sarif/osv-scanner-rubygems.sarif +402 -0
- package/test-data/sarif/osv-scanner-uv.sarif +206 -0
- package/test-data/sarif/osv-scanner-yarn.sarif +5207 -0
- package/test-data/sarif/runs-0.sarif +5 -0
- package/test-data/sarif/runs-2-tools-2-results-0.sarif +1 -1
- package/test-data/sarif/runs-2-tools-2.sarif +1 -1
- package/test-data/sarif/runs-3-tools-2-results-0.sarif +1 -1
- package/test-data/sarif/runs-3-tools-2.sarif +1 -1
- package/test-data/sarif/tmp/codeql-csharp.sarif +1 -0
- package/test-data/sarif/tmp/grype-container.sarif +1774 -0
- package/test-data/sarif/tmp/runs-1-tools-1-results-0.sarif +18 -0
- package/test-data/sarif/tmp/runs-2-tools-2.sarif +686 -0
- package/test-data/sarif/trivy-iac.sarif +1 -1
- package/tests/integration/SendSarifToSlack.spec.ts +95 -27
- package/tsconfig.json +2 -0
- package/dist/Processors.d.ts +0 -2
- package/dist/Processors.d.ts.map +0 -1
- package/dist/Processors.js +0 -61
- package/dist/SarifToSlackService.d.ts +0 -39
- package/dist/SarifToSlackService.d.ts.map +0 -1
- package/dist/SarifToSlackService.js +0 -104
- package/dist/metadata.d.ts +0 -2
- package/dist/metadata.d.ts.map +0 -1
- package/dist/metadata.js +0 -11
- package/dist/model/SarifModelPerRun.d.ts +0 -2
- package/dist/model/SarifModelPerRun.d.ts.map +0 -1
- package/dist/model/SarifModelPerRun.js +0 -90
- package/dist/model/SarifModelPerSarif.d.ts +0 -2
- package/dist/model/SarifModelPerSarif.d.ts.map +0 -1
- package/dist/model/SarifModelPerSarif.js +0 -102
- package/dist/model/types.d.ts +0 -2
- package/dist/model/types.d.ts.map +0 -1
- package/dist/model/types.js +0 -49
- package/dist/utils/SortUtils.d.ts +0 -2
- package/dist/utils/SortUtils.d.ts.map +0 -1
- package/dist/utils/SortUtils.js +0 -20
- package/src/Processors.ts +0 -68
- package/src/SarifToSlackService.ts +0 -117
- package/src/metadata.ts +0 -10
- package/src/model/SarifModelPerRun.ts +0 -120
- package/src/model/SarifModelPerSarif.ts +0 -126
- package/src/model/types.ts +0 -50
- package/src/utils/SortUtils.ts +0 -33
- package/tests/Processors.spec.ts +0 -76
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/main/sarif-2.1/schema/sarif-schema-2.1.0.json",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"runs": [
|
|
5
|
+
{
|
|
6
|
+
"addresses": [],
|
|
7
|
+
"artifacts": [
|
|
8
|
+
{
|
|
9
|
+
"length": -1,
|
|
10
|
+
"location": {
|
|
11
|
+
"index": -1,
|
|
12
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
13
|
+
},
|
|
14
|
+
"parentIndex": -1,
|
|
15
|
+
"roles": []
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"graphs": [],
|
|
19
|
+
"invocations": [],
|
|
20
|
+
"language": "en-US",
|
|
21
|
+
"logicalLocations": [],
|
|
22
|
+
"newlineSequences": [
|
|
23
|
+
"\r\n",
|
|
24
|
+
"\n"
|
|
25
|
+
],
|
|
26
|
+
"policies": [],
|
|
27
|
+
"redactionTokens": [],
|
|
28
|
+
"results": [
|
|
29
|
+
{
|
|
30
|
+
"attachments": [],
|
|
31
|
+
"codeFlows": [],
|
|
32
|
+
"fixes": [],
|
|
33
|
+
"graphTraversals": [],
|
|
34
|
+
"graphs": [],
|
|
35
|
+
"kind": "fail",
|
|
36
|
+
"level": "warning",
|
|
37
|
+
"locations": [
|
|
38
|
+
{
|
|
39
|
+
"annotations": [],
|
|
40
|
+
"id": -1,
|
|
41
|
+
"logicalLocations": [],
|
|
42
|
+
"physicalLocation": {
|
|
43
|
+
"artifactLocation": {
|
|
44
|
+
"index": -1,
|
|
45
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"relationships": []
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"message": {
|
|
52
|
+
"arguments": [],
|
|
53
|
+
"text": "Package 'path-to-regexp@0.1.7' is vulnerable to 'CVE-2024-45296' (also known as 'GHSA-9wv6-86v2-598j')."
|
|
54
|
+
},
|
|
55
|
+
"rank": -1,
|
|
56
|
+
"relatedLocations": [],
|
|
57
|
+
"ruleId": "CVE-2024-45296",
|
|
58
|
+
"ruleIndex": 0,
|
|
59
|
+
"stacks": [],
|
|
60
|
+
"taxa": []
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"attachments": [],
|
|
64
|
+
"codeFlows": [],
|
|
65
|
+
"fixes": [],
|
|
66
|
+
"graphTraversals": [],
|
|
67
|
+
"graphs": [],
|
|
68
|
+
"kind": "fail",
|
|
69
|
+
"level": "warning",
|
|
70
|
+
"locations": [
|
|
71
|
+
{
|
|
72
|
+
"annotations": [],
|
|
73
|
+
"id": -1,
|
|
74
|
+
"logicalLocations": [],
|
|
75
|
+
"physicalLocation": {
|
|
76
|
+
"artifactLocation": {
|
|
77
|
+
"index": -1,
|
|
78
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"relationships": []
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"message": {
|
|
85
|
+
"arguments": [],
|
|
86
|
+
"text": "Package 'serve-static@1.14.1' is vulnerable to 'CVE-2024-43800' (also known as 'GHSA-cm22-4g7w-348p')."
|
|
87
|
+
},
|
|
88
|
+
"rank": -1,
|
|
89
|
+
"relatedLocations": [],
|
|
90
|
+
"ruleId": "CVE-2024-43800",
|
|
91
|
+
"ruleIndex": 1,
|
|
92
|
+
"stacks": [],
|
|
93
|
+
"taxa": []
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"attachments": [],
|
|
97
|
+
"codeFlows": [],
|
|
98
|
+
"fixes": [],
|
|
99
|
+
"graphTraversals": [],
|
|
100
|
+
"graphs": [],
|
|
101
|
+
"kind": "fail",
|
|
102
|
+
"level": "warning",
|
|
103
|
+
"locations": [
|
|
104
|
+
{
|
|
105
|
+
"annotations": [],
|
|
106
|
+
"id": -1,
|
|
107
|
+
"logicalLocations": [],
|
|
108
|
+
"physicalLocation": {
|
|
109
|
+
"artifactLocation": {
|
|
110
|
+
"index": -1,
|
|
111
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"relationships": []
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"message": {
|
|
118
|
+
"arguments": [],
|
|
119
|
+
"text": "Package 'qs@6.7.0' is vulnerable to 'CVE-2022-24999' (also known as 'GHSA-hrpp-h998-j3pp')."
|
|
120
|
+
},
|
|
121
|
+
"rank": -1,
|
|
122
|
+
"relatedLocations": [],
|
|
123
|
+
"ruleId": "CVE-2022-24999",
|
|
124
|
+
"ruleIndex": 2,
|
|
125
|
+
"stacks": [],
|
|
126
|
+
"taxa": []
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"attachments": [],
|
|
130
|
+
"codeFlows": [],
|
|
131
|
+
"fixes": [],
|
|
132
|
+
"graphTraversals": [],
|
|
133
|
+
"graphs": [],
|
|
134
|
+
"kind": "fail",
|
|
135
|
+
"level": "warning",
|
|
136
|
+
"locations": [
|
|
137
|
+
{
|
|
138
|
+
"annotations": [],
|
|
139
|
+
"id": -1,
|
|
140
|
+
"logicalLocations": [],
|
|
141
|
+
"physicalLocation": {
|
|
142
|
+
"artifactLocation": {
|
|
143
|
+
"index": -1,
|
|
144
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"relationships": []
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"message": {
|
|
151
|
+
"arguments": [],
|
|
152
|
+
"text": "Package 'send@0.17.1' is vulnerable to 'CVE-2024-43799' (also known as 'GHSA-m6fv-jmcg-4jfg')."
|
|
153
|
+
},
|
|
154
|
+
"rank": -1,
|
|
155
|
+
"relatedLocations": [],
|
|
156
|
+
"ruleId": "CVE-2024-43799",
|
|
157
|
+
"ruleIndex": 3,
|
|
158
|
+
"stacks": [],
|
|
159
|
+
"taxa": []
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"attachments": [],
|
|
163
|
+
"codeFlows": [],
|
|
164
|
+
"fixes": [],
|
|
165
|
+
"graphTraversals": [],
|
|
166
|
+
"graphs": [],
|
|
167
|
+
"kind": "fail",
|
|
168
|
+
"level": "warning",
|
|
169
|
+
"locations": [
|
|
170
|
+
{
|
|
171
|
+
"annotations": [],
|
|
172
|
+
"id": -1,
|
|
173
|
+
"logicalLocations": [],
|
|
174
|
+
"physicalLocation": {
|
|
175
|
+
"artifactLocation": {
|
|
176
|
+
"index": -1,
|
|
177
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"relationships": []
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"message": {
|
|
184
|
+
"arguments": [],
|
|
185
|
+
"text": "Package 'cookie@0.4.0' is vulnerable to 'CVE-2024-47764' (also known as 'GHSA-pxg6-pf52-xh8x')."
|
|
186
|
+
},
|
|
187
|
+
"rank": -1,
|
|
188
|
+
"relatedLocations": [],
|
|
189
|
+
"ruleId": "CVE-2024-47764",
|
|
190
|
+
"ruleIndex": 4,
|
|
191
|
+
"stacks": [],
|
|
192
|
+
"taxa": []
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"attachments": [],
|
|
196
|
+
"codeFlows": [],
|
|
197
|
+
"fixes": [],
|
|
198
|
+
"graphTraversals": [],
|
|
199
|
+
"graphs": [],
|
|
200
|
+
"kind": "fail",
|
|
201
|
+
"level": "warning",
|
|
202
|
+
"locations": [
|
|
203
|
+
{
|
|
204
|
+
"annotations": [],
|
|
205
|
+
"id": -1,
|
|
206
|
+
"logicalLocations": [],
|
|
207
|
+
"physicalLocation": {
|
|
208
|
+
"artifactLocation": {
|
|
209
|
+
"index": -1,
|
|
210
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"relationships": []
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"message": {
|
|
217
|
+
"arguments": [],
|
|
218
|
+
"text": "Package 'express@4.17.1' is vulnerable to 'CVE-2024-43796' (also known as 'GHSA-qw6h-vgh9-j6wx')."
|
|
219
|
+
},
|
|
220
|
+
"rank": -1,
|
|
221
|
+
"relatedLocations": [],
|
|
222
|
+
"ruleId": "CVE-2024-43796",
|
|
223
|
+
"ruleIndex": 5,
|
|
224
|
+
"stacks": [],
|
|
225
|
+
"taxa": []
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"attachments": [],
|
|
229
|
+
"codeFlows": [],
|
|
230
|
+
"fixes": [],
|
|
231
|
+
"graphTraversals": [],
|
|
232
|
+
"graphs": [],
|
|
233
|
+
"kind": "fail",
|
|
234
|
+
"level": "warning",
|
|
235
|
+
"locations": [
|
|
236
|
+
{
|
|
237
|
+
"annotations": [],
|
|
238
|
+
"id": -1,
|
|
239
|
+
"logicalLocations": [],
|
|
240
|
+
"physicalLocation": {
|
|
241
|
+
"artifactLocation": {
|
|
242
|
+
"index": -1,
|
|
243
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"relationships": []
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"message": {
|
|
250
|
+
"arguments": [],
|
|
251
|
+
"text": "Package 'body-parser@1.19.0' is vulnerable to 'CVE-2024-45590' (also known as 'GHSA-qwcr-r2fm-qrc7')."
|
|
252
|
+
},
|
|
253
|
+
"rank": -1,
|
|
254
|
+
"relatedLocations": [],
|
|
255
|
+
"ruleId": "CVE-2024-45590",
|
|
256
|
+
"ruleIndex": 6,
|
|
257
|
+
"stacks": [],
|
|
258
|
+
"taxa": []
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"attachments": [],
|
|
262
|
+
"codeFlows": [],
|
|
263
|
+
"fixes": [],
|
|
264
|
+
"graphTraversals": [],
|
|
265
|
+
"graphs": [],
|
|
266
|
+
"kind": "fail",
|
|
267
|
+
"level": "warning",
|
|
268
|
+
"locations": [
|
|
269
|
+
{
|
|
270
|
+
"annotations": [],
|
|
271
|
+
"id": -1,
|
|
272
|
+
"logicalLocations": [],
|
|
273
|
+
"physicalLocation": {
|
|
274
|
+
"artifactLocation": {
|
|
275
|
+
"index": -1,
|
|
276
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"relationships": []
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"message": {
|
|
283
|
+
"arguments": [],
|
|
284
|
+
"text": "Package 'path-to-regexp@0.1.7' is vulnerable to 'CVE-2024-52798' (also known as 'GHSA-rhx6-c78j-4q9w')."
|
|
285
|
+
},
|
|
286
|
+
"rank": -1,
|
|
287
|
+
"relatedLocations": [],
|
|
288
|
+
"ruleId": "CVE-2024-52798",
|
|
289
|
+
"ruleIndex": 7,
|
|
290
|
+
"stacks": [],
|
|
291
|
+
"taxa": []
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"attachments": [],
|
|
295
|
+
"codeFlows": [],
|
|
296
|
+
"fixes": [],
|
|
297
|
+
"graphTraversals": [],
|
|
298
|
+
"graphs": [],
|
|
299
|
+
"kind": "fail",
|
|
300
|
+
"level": "warning",
|
|
301
|
+
"locations": [
|
|
302
|
+
{
|
|
303
|
+
"annotations": [],
|
|
304
|
+
"id": -1,
|
|
305
|
+
"logicalLocations": [],
|
|
306
|
+
"physicalLocation": {
|
|
307
|
+
"artifactLocation": {
|
|
308
|
+
"index": -1,
|
|
309
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"relationships": []
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"message": {
|
|
316
|
+
"arguments": [],
|
|
317
|
+
"text": "Package 'express@4.17.1' is vulnerable to 'CVE-2024-29041' (also known as 'GHSA-rv95-896h-c2vc')."
|
|
318
|
+
},
|
|
319
|
+
"rank": -1,
|
|
320
|
+
"relatedLocations": [],
|
|
321
|
+
"ruleId": "CVE-2024-29041",
|
|
322
|
+
"ruleIndex": 8,
|
|
323
|
+
"stacks": [],
|
|
324
|
+
"taxa": []
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"attachments": [],
|
|
328
|
+
"codeFlows": [],
|
|
329
|
+
"fixes": [],
|
|
330
|
+
"graphTraversals": [],
|
|
331
|
+
"graphs": [],
|
|
332
|
+
"kind": "fail",
|
|
333
|
+
"level": "warning",
|
|
334
|
+
"locations": [
|
|
335
|
+
{
|
|
336
|
+
"annotations": [],
|
|
337
|
+
"id": -1,
|
|
338
|
+
"logicalLocations": [],
|
|
339
|
+
"physicalLocation": {
|
|
340
|
+
"artifactLocation": {
|
|
341
|
+
"index": -1,
|
|
342
|
+
"uri": "file:///Users/john.doe/projects/javascript/npm/package-lock.json"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"relationships": []
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"message": {
|
|
349
|
+
"arguments": [],
|
|
350
|
+
"text": "Package 'mongodb@4.0.0' is vulnerable to 'CVE-2021-32050' (also known as 'GHSA-vxvm-qww3-2fh7')."
|
|
351
|
+
},
|
|
352
|
+
"rank": -1,
|
|
353
|
+
"relatedLocations": [],
|
|
354
|
+
"ruleId": "CVE-2021-32050",
|
|
355
|
+
"ruleIndex": 9,
|
|
356
|
+
"stacks": [],
|
|
357
|
+
"taxa": []
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"runAggregates": [],
|
|
361
|
+
"taxonomies": [],
|
|
362
|
+
"threadFlowLocations": [],
|
|
363
|
+
"tool": {
|
|
364
|
+
"driver": {
|
|
365
|
+
"contents": [
|
|
366
|
+
"localizedData",
|
|
367
|
+
"nonLocalizedData"
|
|
368
|
+
],
|
|
369
|
+
"informationUri": "https://github.com/google/osv-scanner",
|
|
370
|
+
"isComprehensive": false,
|
|
371
|
+
"language": "en-US",
|
|
372
|
+
"locations": [],
|
|
373
|
+
"name": "osv-scanner",
|
|
374
|
+
"notifications": [],
|
|
375
|
+
"rules": [
|
|
376
|
+
{
|
|
377
|
+
"deprecatedIds": [
|
|
378
|
+
"CVE-2024-45296",
|
|
379
|
+
"GHSA-9wv6-86v2-598j"
|
|
380
|
+
],
|
|
381
|
+
"fullDescription": {
|
|
382
|
+
"markdown": "### Impact\n\nA bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (`.`). For example, `/:a-:b`.\n\n### Patches\n\nFor users of 0.1, upgrade to `0.1.10`. All other users should upgrade to `8.0.0`.\n\nThese versions add backtrack protection when a custom regex pattern is not provided:\n\n- [0.1.10](https://github.com/pillarjs/path-to-regexp/releases/tag/v0.1.10)\n- [1.9.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v1.9.0)\n- [3.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v3.3.0)\n- [6.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0)\n\nThey do not protect against vulnerable user supplied capture groups. Protecting against explicit user patterns is out of scope for old versions and not considered a vulnerability.\n\nVersion [7.1.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v7.1.0) can enable `strict: true` and get an error when the regular expression might be bad.\n\nVersion [8.0.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v8.0.0) removes the features that can cause a ReDoS.\n\n### Workarounds\n\nAll versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change `/:a-:b` to `/:a-:b([^-/]+)`.\n\nIf paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length. For example, halving the attack string improves performance by 4x faster.\n\n### Details\n\nUsing `/:a-:b` will produce the regular expression `/^\\/([^\\/]+?)-([^\\/]+?)\\/?$/`. This can be exploited by a path such as `/a${'-a'.repeat(8_000)}/a`. [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) has a good example of why this occurs, but the TL;DR is the `/a` at the end ensures this route would never match but due to naive backtracking it will still attempt every combination of the `:a-:b` on the repeated 8,000 `-a`.\n\nBecause JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and can lead to a DoS. In local benchmarks, exploiting the unsafe regex will result in performance that is over 1000x worse than the safe regex. In a more realistic environment using Express v4 and 10 concurrent connections, this translated to average latency of ~600ms vs 1ms.\n\n### References\n\n* [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n* [Detailed blog post](https://blakeembrey.com/posts/2024-09-web-redos/)",
|
|
383
|
+
"text": "### Impact\n\nA bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (`.`). For example, `/:a-:b`.\n\n### Patches\n\nFor users of 0.1, upgrade to `0.1.10`. All other users should upgrade to `8.0.0`.\n\nThese versions add backtrack protection when a custom regex pattern is not provided:\n\n- [0.1.10](https://github.com/pillarjs/path-to-regexp/releases/tag/v0.1.10)\n- [1.9.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v1.9.0)\n- [3.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v3.3.0)\n- [6.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0)\n\nThey do not protect against vulnerable user supplied capture groups. Protecting against explicit user patterns is out of scope for old versions and not considered a vulnerability.\n\nVersion [7.1.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v7.1.0) can enable `strict: true` and get an error when the regular expression might be bad.\n\nVersion [8.0.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v8.0.0) removes the features that can cause a ReDoS.\n\n### Workarounds\n\nAll versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change `/:a-:b` to `/:a-:b([^-/]+)`.\n\nIf paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length. For example, halving the attack string improves performance by 4x faster.\n\n### Details\n\nUsing `/:a-:b` will produce the regular expression `/^\\/([^\\/]+?)-([^\\/]+?)\\/?$/`. This can be exploited by a path such as `/a${'-a'.repeat(8_000)}/a`. [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) has a good example of why this occurs, but the TL;DR is the `/a` at the end ensures this route would never match but due to naive backtracking it will still attempt every combination of the `:a-:b` on the repeated 8,000 `-a`.\n\nBecause JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and can lead to a DoS. In local benchmarks, exploiting the unsafe regex will result in performance that is over 1000x worse than the safe regex. In a more realistic environment using Express v4 and 10 concurrent connections, this translated to average latency of ~600ms vs 1ms.\n\n### References\n\n* [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n* [Detailed blog post](https://blakeembrey.com/posts/2024-09-web-redos/)"
|
|
384
|
+
},
|
|
385
|
+
"help": {
|
|
386
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-45296](https://osv.dev/CVE-2024-45296)**.\n\n## [GHSA-9wv6-86v2-598j](https://osv.dev/GHSA-9wv6-86v2-598j)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e A bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (`.`). For example, `/:a-:b`.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e For users of 0.1, upgrade to `0.1.10`. All other users should upgrade to `8.0.0`.\n\u003e \n\u003e These versions add backtrack protection when a custom regex pattern is not provided:\n\u003e \n\u003e - [0.1.10](https://github.com/pillarjs/path-to-regexp/releases/tag/v0.1.10)\n\u003e - [1.9.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v1.9.0)\n\u003e - [3.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v3.3.0)\n\u003e - [6.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0)\n\u003e \n\u003e They do not protect against vulnerable user supplied capture groups. Protecting against explicit user patterns is out of scope for old versions and not considered a vulnerability.\n\u003e \n\u003e Version [7.1.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v7.1.0) can enable `strict: true` and get an error when the regular expression might be bad.\n\u003e \n\u003e Version [8.0.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v8.0.0) removes the features that can cause a ReDoS.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change `/:a-:b` to `/:a-:b([^-/]+)`.\n\u003e \n\u003e If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length. For example, halving the attack string improves performance by 4x faster.\n\u003e \n\u003e ### Details\n\u003e \n\u003e Using `/:a-:b` will produce the regular expression `/^\\/([^\\/]+?)-([^\\/]+?)\\/?$/`. This can be exploited by a path such as `/a${'-a'.repeat(8_000)}/a`. [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) has a good example of why this occurs, but the TL;DR is the `/a` at the end ensures this route would never match but due to naive backtracking it will still attempt every combination of the `:a-:b` on the repeated 8,000 `-a`.\n\u003e \n\u003e Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and can lead to a DoS. In local benchmarks, exploiting the unsafe regex will result in performance that is over 1000x worse than the safe regex. In a more realistic environment using Express v4 and 10 concurrent connections, this translated to average latency of ~600ms vs 1ms.\n\u003e \n\u003e ### References\n\u003e \n\u003e * [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n\u003e * [Detailed blog post](https://blakeembrey.com/posts/2024-09-web-redos/)\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | path-to-regexp | 0.1.7 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-9wv6-86v2-598j | path-to-regexp | 0.1.10, 1.9.0, 3.3.0, 6.3.0, 8.0.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-45296\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
387
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-45296](https://osv.dev/CVE-2024-45296)**.\n\n## [GHSA-9wv6-86v2-598j](https://osv.dev/GHSA-9wv6-86v2-598j)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e A bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (`.`). For example, `/:a-:b`.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e For users of 0.1, upgrade to `0.1.10`. All other users should upgrade to `8.0.0`.\n\u003e \n\u003e These versions add backtrack protection when a custom regex pattern is not provided:\n\u003e \n\u003e - [0.1.10](https://github.com/pillarjs/path-to-regexp/releases/tag/v0.1.10)\n\u003e - [1.9.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v1.9.0)\n\u003e - [3.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v3.3.0)\n\u003e - [6.3.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0)\n\u003e \n\u003e They do not protect against vulnerable user supplied capture groups. Protecting against explicit user patterns is out of scope for old versions and not considered a vulnerability.\n\u003e \n\u003e Version [7.1.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v7.1.0) can enable `strict: true` and get an error when the regular expression might be bad.\n\u003e \n\u003e Version [8.0.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v8.0.0) removes the features that can cause a ReDoS.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change `/:a-:b` to `/:a-:b([^-/]+)`.\n\u003e \n\u003e If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length. For example, halving the attack string improves performance by 4x faster.\n\u003e \n\u003e ### Details\n\u003e \n\u003e Using `/:a-:b` will produce the regular expression `/^\\/([^\\/]+?)-([^\\/]+?)\\/?$/`. This can be exploited by a path such as `/a${'-a'.repeat(8_000)}/a`. [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) has a good example of why this occurs, but the TL;DR is the `/a` at the end ensures this route would never match but due to naive backtracking it will still attempt every combination of the `:a-:b` on the repeated 8,000 `-a`.\n\u003e \n\u003e Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and can lead to a DoS. In local benchmarks, exploiting the unsafe regex will result in performance that is over 1000x worse than the safe regex. In a more realistic environment using Express v4 and 10 concurrent connections, this translated to average latency of ~600ms vs 1ms.\n\u003e \n\u003e ### References\n\u003e \n\u003e * [OWASP](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n\u003e * [Detailed blog post](https://blakeembrey.com/posts/2024-09-web-redos/)\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | path-to-regexp | 0.1.7 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-9wv6-86v2-598j | path-to-regexp | 0.1.10, 1.9.0, 3.3.0, 6.3.0, 8.0.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-45296\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
388
|
+
},
|
|
389
|
+
"id": "CVE-2024-45296",
|
|
390
|
+
"name": "CVE-2024-45296",
|
|
391
|
+
"properties": {
|
|
392
|
+
"security-severity": "7.7"
|
|
393
|
+
},
|
|
394
|
+
"relationships": [],
|
|
395
|
+
"shortDescription": {
|
|
396
|
+
"markdown": "CVE-2024-45296: path-to-regexp outputs backtracking regular expressions",
|
|
397
|
+
"text": "CVE-2024-45296: path-to-regexp outputs backtracking regular expressions"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"deprecatedIds": [
|
|
402
|
+
"CVE-2024-43800",
|
|
403
|
+
"GHSA-cm22-4g7w-348p"
|
|
404
|
+
],
|
|
405
|
+
"fullDescription": {
|
|
406
|
+
"markdown": "### Impact\n\npassing untrusted user input - even after sanitizing it - to `redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in serve-static 1.16.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n",
|
|
407
|
+
"text": "### Impact\n\npassing untrusted user input - even after sanitizing it - to `redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in serve-static 1.16.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n"
|
|
408
|
+
},
|
|
409
|
+
"help": {
|
|
410
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-43800](https://osv.dev/CVE-2024-43800)**.\n\n## [GHSA-cm22-4g7w-348p](https://osv.dev/GHSA-cm22-4g7w-348p)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e passing untrusted user input - even after sanitizing it - to `redirect()` may execute untrusted code\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in serve-static 1.16.0\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\u003e \n\u003e ### Details\n\u003e \n\u003e successful exploitation of this vector requires the following:\n\u003e \n\u003e 1. The attacker MUST control the input to response.redirect()\n\u003e 1. express MUST NOT redirect before the template appears\n\u003e 1. the browser MUST NOT complete redirection before:\n\u003e 1. the user MUST click on the link in the template\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | serve-static | 1.14.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-cm22-4g7w-348p | serve-static | 1.16.0, 2.1.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-43800\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
411
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-43800](https://osv.dev/CVE-2024-43800)**.\n\n## [GHSA-cm22-4g7w-348p](https://osv.dev/GHSA-cm22-4g7w-348p)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e passing untrusted user input - even after sanitizing it - to `redirect()` may execute untrusted code\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in serve-static 1.16.0\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\u003e \n\u003e ### Details\n\u003e \n\u003e successful exploitation of this vector requires the following:\n\u003e \n\u003e 1. The attacker MUST control the input to response.redirect()\n\u003e 1. express MUST NOT redirect before the template appears\n\u003e 1. the browser MUST NOT complete redirection before:\n\u003e 1. the user MUST click on the link in the template\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | serve-static | 1.14.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-cm22-4g7w-348p | serve-static | 1.16.0, 2.1.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-43800\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
412
|
+
},
|
|
413
|
+
"id": "CVE-2024-43800",
|
|
414
|
+
"name": "CVE-2024-43800",
|
|
415
|
+
"properties": {
|
|
416
|
+
"security-severity": "5"
|
|
417
|
+
},
|
|
418
|
+
"relationships": [],
|
|
419
|
+
"shortDescription": {
|
|
420
|
+
"markdown": "CVE-2024-43800: serve-static vulnerable to template injection that can lead to XSS",
|
|
421
|
+
"text": "CVE-2024-43800: serve-static vulnerable to template injection that can lead to XSS"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"deprecatedIds": [
|
|
426
|
+
"CVE-2022-24999",
|
|
427
|
+
"GHSA-hrpp-h998-j3pp"
|
|
428
|
+
],
|
|
429
|
+
"fullDescription": {
|
|
430
|
+
"markdown": "qs before 6.10.3 allows attackers to cause a Node process hang because an `__ proto__` key can be used. In many typical web framework use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as `a[__proto__]=b\u0026a[__proto__]\u0026a[length]=100000000`. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4.",
|
|
431
|
+
"text": "qs before 6.10.3 allows attackers to cause a Node process hang because an `__ proto__` key can be used. In many typical web framework use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as `a[__proto__]=b\u0026a[__proto__]\u0026a[length]=100000000`. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4."
|
|
432
|
+
},
|
|
433
|
+
"help": {
|
|
434
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2022-24999](https://osv.dev/CVE-2022-24999)**.\n\n## [GHSA-hrpp-h998-j3pp](https://osv.dev/GHSA-hrpp-h998-j3pp)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e qs before 6.10.3 allows attackers to cause a Node process hang because an `__ proto__` key can be used. In many typical web framework use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as `a[__proto__]=b\u0026a[__proto__]\u0026a[length]=100000000`. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4.\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | qs | 6.7.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-hrpp-h998-j3pp | qs | 6.10.3, 6.2.4, 6.3.3, 6.4.1, 6.5.3, 6.6.1, 6.7.3, 6.8.3, 6.9.7 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2022-24999\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
435
|
+
"text": "**Your dependency is vulnerable to [CVE-2022-24999](https://osv.dev/CVE-2022-24999)**.\n\n## [GHSA-hrpp-h998-j3pp](https://osv.dev/GHSA-hrpp-h998-j3pp)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e qs before 6.10.3 allows attackers to cause a Node process hang because an `__ proto__` key can be used. In many typical web framework use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as `a[__proto__]=b\u0026a[__proto__]\u0026a[length]=100000000`. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4.\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | qs | 6.7.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-hrpp-h998-j3pp | qs | 6.10.3, 6.2.4, 6.3.3, 6.4.1, 6.5.3, 6.6.1, 6.7.3, 6.8.3, 6.9.7 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2022-24999\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
436
|
+
},
|
|
437
|
+
"id": "CVE-2022-24999",
|
|
438
|
+
"name": "CVE-2022-24999",
|
|
439
|
+
"properties": {
|
|
440
|
+
"security-severity": "7.5"
|
|
441
|
+
},
|
|
442
|
+
"relationships": [],
|
|
443
|
+
"shortDescription": {
|
|
444
|
+
"markdown": "CVE-2022-24999: qs vulnerable to Prototype Pollution",
|
|
445
|
+
"text": "CVE-2022-24999: qs vulnerable to Prototype Pollution"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"deprecatedIds": [
|
|
450
|
+
"CVE-2024-43799",
|
|
451
|
+
"GHSA-m6fv-jmcg-4jfg"
|
|
452
|
+
],
|
|
453
|
+
"fullDescription": {
|
|
454
|
+
"markdown": "### Impact\n\npassing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in send 0.19.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n",
|
|
455
|
+
"text": "### Impact\n\npassing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in send 0.19.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n"
|
|
456
|
+
},
|
|
457
|
+
"help": {
|
|
458
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-43799](https://osv.dev/CVE-2024-43799)**.\n\n## [GHSA-m6fv-jmcg-4jfg](https://osv.dev/GHSA-m6fv-jmcg-4jfg)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e passing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in send 0.19.0\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\u003e \n\u003e ### Details\n\u003e \n\u003e successful exploitation of this vector requires the following:\n\u003e \n\u003e 1. The attacker MUST control the input to response.redirect()\n\u003e 1. express MUST NOT redirect before the template appears\n\u003e 1. the browser MUST NOT complete redirection before:\n\u003e 1. the user MUST click on the link in the template\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | send | 0.17.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-m6fv-jmcg-4jfg | send | 0.19.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-43799\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
459
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-43799](https://osv.dev/CVE-2024-43799)**.\n\n## [GHSA-m6fv-jmcg-4jfg](https://osv.dev/GHSA-m6fv-jmcg-4jfg)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e passing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in send 0.19.0\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\u003e \n\u003e ### Details\n\u003e \n\u003e successful exploitation of this vector requires the following:\n\u003e \n\u003e 1. The attacker MUST control the input to response.redirect()\n\u003e 1. express MUST NOT redirect before the template appears\n\u003e 1. the browser MUST NOT complete redirection before:\n\u003e 1. the user MUST click on the link in the template\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | send | 0.17.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-m6fv-jmcg-4jfg | send | 0.19.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-43799\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
460
|
+
},
|
|
461
|
+
"id": "CVE-2024-43799",
|
|
462
|
+
"name": "CVE-2024-43799",
|
|
463
|
+
"properties": {
|
|
464
|
+
"security-severity": "5"
|
|
465
|
+
},
|
|
466
|
+
"relationships": [],
|
|
467
|
+
"shortDescription": {
|
|
468
|
+
"markdown": "CVE-2024-43799: send vulnerable to template injection that can lead to XSS",
|
|
469
|
+
"text": "CVE-2024-43799: send vulnerable to template injection that can lead to XSS"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"deprecatedIds": [
|
|
474
|
+
"CVE-2024-47764",
|
|
475
|
+
"GHSA-pxg6-pf52-xh8x"
|
|
476
|
+
],
|
|
477
|
+
"fullDescription": {
|
|
478
|
+
"markdown": "### Impact\n\nThe cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. For example, `serialize(\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a\", value)` would result in `\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a=test\"`, setting `userName` cookie to `\u003cscript\u003e` and ignoring `value`.\n\nA similar escape can be used for `path` and `domain`, which could be abused to alter other fields of the cookie.\n\n### Patches\n\nUpgrade to 0.7.0, which updates the validation for `name`, `path`, and `domain`.\n\n### Workarounds\n\nAvoid passing untrusted or arbitrary values for these fields, ensure they are set by the application instead of user input.\n\n### References\n\n* https://github.com/jshttp/cookie/pull/167",
|
|
479
|
+
"text": "### Impact\n\nThe cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. For example, `serialize(\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a\", value)` would result in `\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a=test\"`, setting `userName` cookie to `\u003cscript\u003e` and ignoring `value`.\n\nA similar escape can be used for `path` and `domain`, which could be abused to alter other fields of the cookie.\n\n### Patches\n\nUpgrade to 0.7.0, which updates the validation for `name`, `path`, and `domain`.\n\n### Workarounds\n\nAvoid passing untrusted or arbitrary values for these fields, ensure they are set by the application instead of user input.\n\n### References\n\n* https://github.com/jshttp/cookie/pull/167"
|
|
480
|
+
},
|
|
481
|
+
"help": {
|
|
482
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-47764](https://osv.dev/CVE-2024-47764)**.\n\n## [GHSA-pxg6-pf52-xh8x](https://osv.dev/GHSA-pxg6-pf52-xh8x)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. For example, `serialize(\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a\", value)` would result in `\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a=test\"`, setting `userName` cookie to `\u003cscript\u003e` and ignoring `value`.\n\u003e \n\u003e A similar escape can be used for `path` and `domain`, which could be abused to alter other fields of the cookie.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e Upgrade to 0.7.0, which updates the validation for `name`, `path`, and `domain`.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e Avoid passing untrusted or arbitrary values for these fields, ensure they are set by the application instead of user input.\n\u003e \n\u003e ### References\n\u003e \n\u003e * https://github.com/jshttp/cookie/pull/167\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | cookie | 0.4.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-pxg6-pf52-xh8x | cookie | 0.7.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-47764\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
483
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-47764](https://osv.dev/CVE-2024-47764)**.\n\n## [GHSA-pxg6-pf52-xh8x](https://osv.dev/GHSA-pxg6-pf52-xh8x)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. For example, `serialize(\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a\", value)` would result in `\"userName=\u003cscript\u003ealert('XSS3')\u003c/script\u003e; Max-Age=2592000; a=test\"`, setting `userName` cookie to `\u003cscript\u003e` and ignoring `value`.\n\u003e \n\u003e A similar escape can be used for `path` and `domain`, which could be abused to alter other fields of the cookie.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e Upgrade to 0.7.0, which updates the validation for `name`, `path`, and `domain`.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e Avoid passing untrusted or arbitrary values for these fields, ensure they are set by the application instead of user input.\n\u003e \n\u003e ### References\n\u003e \n\u003e * https://github.com/jshttp/cookie/pull/167\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | cookie | 0.4.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-pxg6-pf52-xh8x | cookie | 0.7.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-47764\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
484
|
+
},
|
|
485
|
+
"id": "CVE-2024-47764",
|
|
486
|
+
"name": "CVE-2024-47764",
|
|
487
|
+
"relationships": [],
|
|
488
|
+
"shortDescription": {
|
|
489
|
+
"markdown": "CVE-2024-47764: cookie accepts cookie name, path, and domain with out of bounds characters",
|
|
490
|
+
"text": "CVE-2024-47764: cookie accepts cookie name, path, and domain with out of bounds characters"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"deprecatedIds": [
|
|
495
|
+
"CVE-2024-43796",
|
|
496
|
+
"GHSA-qw6h-vgh9-j6wx"
|
|
497
|
+
],
|
|
498
|
+
"fullDescription": {
|
|
499
|
+
"markdown": "### Impact\n\nIn express \u003c4.20.0, passing untrusted user input - even after sanitizing it - to `response.redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in express 4.20.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n",
|
|
500
|
+
"text": "### Impact\n\nIn express \u003c4.20.0, passing untrusted user input - even after sanitizing it - to `response.redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in express 4.20.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n"
|
|
501
|
+
},
|
|
502
|
+
"help": {
|
|
503
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-43796](https://osv.dev/CVE-2024-43796)**.\n\n## [GHSA-qw6h-vgh9-j6wx](https://osv.dev/GHSA-qw6h-vgh9-j6wx)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e In express \u003c4.20.0, passing untrusted user input - even after sanitizing it - to `response.redirect()` may execute untrusted code\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in express 4.20.0\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\u003e \n\u003e ### Details\n\u003e \n\u003e successful exploitation of this vector requires the following:\n\u003e \n\u003e 1. The attacker MUST control the input to response.redirect()\n\u003e 1. express MUST NOT redirect before the template appears\n\u003e 1. the browser MUST NOT complete redirection before:\n\u003e 1. the user MUST click on the link in the template\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | express | 4.17.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-qw6h-vgh9-j6wx | express | 4.20.0, 5.0.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-43796\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
504
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-43796](https://osv.dev/CVE-2024-43796)**.\n\n## [GHSA-qw6h-vgh9-j6wx](https://osv.dev/GHSA-qw6h-vgh9-j6wx)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e In express \u003c4.20.0, passing untrusted user input - even after sanitizing it - to `response.redirect()` may execute untrusted code\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in express 4.20.0\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\u003e \n\u003e ### Details\n\u003e \n\u003e successful exploitation of this vector requires the following:\n\u003e \n\u003e 1. The attacker MUST control the input to response.redirect()\n\u003e 1. express MUST NOT redirect before the template appears\n\u003e 1. the browser MUST NOT complete redirection before:\n\u003e 1. the user MUST click on the link in the template\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | express | 4.17.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-qw6h-vgh9-j6wx | express | 4.20.0, 5.0.0 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-43796\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
505
|
+
},
|
|
506
|
+
"id": "CVE-2024-43796",
|
|
507
|
+
"name": "CVE-2024-43796",
|
|
508
|
+
"properties": {
|
|
509
|
+
"security-severity": "5"
|
|
510
|
+
},
|
|
511
|
+
"relationships": [],
|
|
512
|
+
"shortDescription": {
|
|
513
|
+
"markdown": "CVE-2024-43796: express vulnerable to XSS via response.redirect()",
|
|
514
|
+
"text": "CVE-2024-43796: express vulnerable to XSS via response.redirect()"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"deprecatedIds": [
|
|
519
|
+
"CVE-2024-45590",
|
|
520
|
+
"GHSA-qwcr-r2fm-qrc7"
|
|
521
|
+
],
|
|
522
|
+
"fullDescription": {
|
|
523
|
+
"markdown": "### Impact\n\nbody-parser \u003c1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.\n\n### Patches\n\nthis issue is patched in 1.20.3\n\n### References\n",
|
|
524
|
+
"text": "### Impact\n\nbody-parser \u003c1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.\n\n### Patches\n\nthis issue is patched in 1.20.3\n\n### References\n"
|
|
525
|
+
},
|
|
526
|
+
"help": {
|
|
527
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-45590](https://osv.dev/CVE-2024-45590)**.\n\n## [GHSA-qwcr-r2fm-qrc7](https://osv.dev/GHSA-qwcr-r2fm-qrc7)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e body-parser \u003c1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in 1.20.3\n\u003e \n\u003e ### References\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | body-parser | 1.19.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-qwcr-r2fm-qrc7 | body-parser | 1.20.3 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-45590\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
528
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-45590](https://osv.dev/CVE-2024-45590)**.\n\n## [GHSA-qwcr-r2fm-qrc7](https://osv.dev/GHSA-qwcr-r2fm-qrc7)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e body-parser \u003c1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e this issue is patched in 1.20.3\n\u003e \n\u003e ### References\n\u003e \n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | body-parser | 1.19.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-qwcr-r2fm-qrc7 | body-parser | 1.20.3 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-45590\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
529
|
+
},
|
|
530
|
+
"id": "CVE-2024-45590",
|
|
531
|
+
"name": "CVE-2024-45590",
|
|
532
|
+
"properties": {
|
|
533
|
+
"security-severity": "8.7"
|
|
534
|
+
},
|
|
535
|
+
"relationships": [],
|
|
536
|
+
"shortDescription": {
|
|
537
|
+
"markdown": "CVE-2024-45590: body-parser vulnerable to denial of service when url encoding is enabled",
|
|
538
|
+
"text": "CVE-2024-45590: body-parser vulnerable to denial of service when url encoding is enabled"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"deprecatedIds": [
|
|
543
|
+
"CVE-2024-52798",
|
|
544
|
+
"GHSA-rhx6-c78j-4q9w"
|
|
545
|
+
],
|
|
546
|
+
"fullDescription": {
|
|
547
|
+
"markdown": "### Impact\n\nThe regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of `path-to-regexp`, originally reported in CVE-2024-45296\n\n### Patches\n\nUpgrade to 0.1.12.\n\n### Workarounds\n\nAvoid using two parameters within a single path segment, when the separator is not `.` (e.g. no `/:a-:b`). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.\n\n### References\n\n- https://github.com/advisories/GHSA-9wv6-86v2-598j\n- https://blakeembrey.com/posts/2024-09-web-redos/",
|
|
548
|
+
"text": "### Impact\n\nThe regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of `path-to-regexp`, originally reported in CVE-2024-45296\n\n### Patches\n\nUpgrade to 0.1.12.\n\n### Workarounds\n\nAvoid using two parameters within a single path segment, when the separator is not `.` (e.g. no `/:a-:b`). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.\n\n### References\n\n- https://github.com/advisories/GHSA-9wv6-86v2-598j\n- https://blakeembrey.com/posts/2024-09-web-redos/"
|
|
549
|
+
},
|
|
550
|
+
"help": {
|
|
551
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-52798](https://osv.dev/CVE-2024-52798)**.\n\n## [GHSA-rhx6-c78j-4q9w](https://osv.dev/GHSA-rhx6-c78j-4q9w)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of `path-to-regexp`, originally reported in CVE-2024-45296\n\u003e \n\u003e ### Patches\n\u003e \n\u003e Upgrade to 0.1.12.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e Avoid using two parameters within a single path segment, when the separator is not `.` (e.g. no `/:a-:b`). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.\n\u003e \n\u003e ### References\n\u003e \n\u003e - https://github.com/advisories/GHSA-9wv6-86v2-598j\n\u003e - https://blakeembrey.com/posts/2024-09-web-redos/\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | path-to-regexp | 0.1.7 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-rhx6-c78j-4q9w | path-to-regexp | 0.1.12 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-52798\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
552
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-52798](https://osv.dev/CVE-2024-52798)**.\n\n## [GHSA-rhx6-c78j-4q9w](https://osv.dev/GHSA-rhx6-c78j-4q9w)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of `path-to-regexp`, originally reported in CVE-2024-45296\n\u003e \n\u003e ### Patches\n\u003e \n\u003e Upgrade to 0.1.12.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e Avoid using two parameters within a single path segment, when the separator is not `.` (e.g. no `/:a-:b`). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.\n\u003e \n\u003e ### References\n\u003e \n\u003e - https://github.com/advisories/GHSA-9wv6-86v2-598j\n\u003e - https://blakeembrey.com/posts/2024-09-web-redos/\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | path-to-regexp | 0.1.7 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-rhx6-c78j-4q9w | path-to-regexp | 0.1.12 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-52798\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
553
|
+
},
|
|
554
|
+
"id": "CVE-2024-52798",
|
|
555
|
+
"name": "CVE-2024-52798",
|
|
556
|
+
"properties": {
|
|
557
|
+
"security-severity": "7.7"
|
|
558
|
+
},
|
|
559
|
+
"relationships": [],
|
|
560
|
+
"shortDescription": {
|
|
561
|
+
"markdown": "CVE-2024-52798: path-to-regexp contains a ReDoS",
|
|
562
|
+
"text": "CVE-2024-52798: path-to-regexp contains a ReDoS"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"deprecatedIds": [
|
|
567
|
+
"CVE-2024-29041",
|
|
568
|
+
"GHSA-rv95-896h-c2vc"
|
|
569
|
+
],
|
|
570
|
+
"fullDescription": {
|
|
571
|
+
"markdown": "### Impact\n\nVersions of Express.js prior to 4.19.2 and pre-release alpha and beta versions before 5.0.0-beta.3 are affected by an open redirect vulnerability using malformed URLs.\n\nWhen a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`](https://github.com/pillarjs/encodeurl) on the contents before passing it to the `location` header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list.\n\nThe main method impacted is `res.location()` but this is also called from within `res.redirect()`.\n\n### Patches\n\nhttps://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd\nhttps://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94\n\nAn initial fix went out with `express@4.19.0`, we then patched a feature regression in `4.19.1` and added improved handling for the bypass in `4.19.2`.\n\n### Workarounds\n\nThe fix for this involves pre-parsing the url string with either `require('node:url').parse` or `new URL`. These are steps you can take on your own before passing the user input string to `res.location` or `res.redirect`.\n\n### References\n\nhttps://github.com/expressjs/express/pull/5539\nhttps://github.com/koajs/koa/issues/1800\nhttps://expressjs.com/en/4x/api.html#res.location",
|
|
572
|
+
"text": "### Impact\n\nVersions of Express.js prior to 4.19.2 and pre-release alpha and beta versions before 5.0.0-beta.3 are affected by an open redirect vulnerability using malformed URLs.\n\nWhen a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`](https://github.com/pillarjs/encodeurl) on the contents before passing it to the `location` header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list.\n\nThe main method impacted is `res.location()` but this is also called from within `res.redirect()`.\n\n### Patches\n\nhttps://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd\nhttps://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94\n\nAn initial fix went out with `express@4.19.0`, we then patched a feature regression in `4.19.1` and added improved handling for the bypass in `4.19.2`.\n\n### Workarounds\n\nThe fix for this involves pre-parsing the url string with either `require('node:url').parse` or `new URL`. These are steps you can take on your own before passing the user input string to `res.location` or `res.redirect`.\n\n### References\n\nhttps://github.com/expressjs/express/pull/5539\nhttps://github.com/koajs/koa/issues/1800\nhttps://expressjs.com/en/4x/api.html#res.location"
|
|
573
|
+
},
|
|
574
|
+
"help": {
|
|
575
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2024-29041](https://osv.dev/CVE-2024-29041)**.\n\n## [GHSA-rv95-896h-c2vc](https://osv.dev/GHSA-rv95-896h-c2vc)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e Versions of Express.js prior to 4.19.2 and pre-release alpha and beta versions before 5.0.0-beta.3 are affected by an open redirect vulnerability using malformed URLs.\n\u003e \n\u003e When a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`](https://github.com/pillarjs/encodeurl) on the contents before passing it to the `location` header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list.\n\u003e \n\u003e The main method impacted is `res.location()` but this is also called from within `res.redirect()`.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd\n\u003e https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94\n\u003e \n\u003e An initial fix went out with `express@4.19.0`, we then patched a feature regression in `4.19.1` and added improved handling for the bypass in `4.19.2`.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e The fix for this involves pre-parsing the url string with either `require('node:url').parse` or `new URL`. These are steps you can take on your own before passing the user input string to `res.location` or `res.redirect`.\n\u003e \n\u003e ### References\n\u003e \n\u003e https://github.com/expressjs/express/pull/5539\n\u003e https://github.com/koajs/koa/issues/1800\n\u003e https://expressjs.com/en/4x/api.html#res.location\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | express | 4.17.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-rv95-896h-c2vc | express | 4.19.2, 5.0.0-beta.3 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-29041\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
576
|
+
"text": "**Your dependency is vulnerable to [CVE-2024-29041](https://osv.dev/CVE-2024-29041)**.\n\n## [GHSA-rv95-896h-c2vc](https://osv.dev/GHSA-rv95-896h-c2vc)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e ### Impact\n\u003e \n\u003e Versions of Express.js prior to 4.19.2 and pre-release alpha and beta versions before 5.0.0-beta.3 are affected by an open redirect vulnerability using malformed URLs.\n\u003e \n\u003e When a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`](https://github.com/pillarjs/encodeurl) on the contents before passing it to the `location` header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list.\n\u003e \n\u003e The main method impacted is `res.location()` but this is also called from within `res.redirect()`.\n\u003e \n\u003e ### Patches\n\u003e \n\u003e https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd\n\u003e https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94\n\u003e \n\u003e An initial fix went out with `express@4.19.0`, we then patched a feature regression in `4.19.1` and added improved handling for the bypass in `4.19.2`.\n\u003e \n\u003e ### Workarounds\n\u003e \n\u003e The fix for this involves pre-parsing the url string with either `require('node:url').parse` or `new URL`. These are steps you can take on your own before passing the user input string to `res.location` or `res.redirect`.\n\u003e \n\u003e ### References\n\u003e \n\u003e https://github.com/expressjs/express/pull/5539\n\u003e https://github.com/koajs/koa/issues/1800\n\u003e https://expressjs.com/en/4x/api.html#res.location\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | express | 4.17.1 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-rv95-896h-c2vc | express | 4.19.2, 5.0.0-beta.3 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2024-29041\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
577
|
+
},
|
|
578
|
+
"id": "CVE-2024-29041",
|
|
579
|
+
"name": "CVE-2024-29041",
|
|
580
|
+
"properties": {
|
|
581
|
+
"security-severity": "6.1"
|
|
582
|
+
},
|
|
583
|
+
"relationships": [],
|
|
584
|
+
"shortDescription": {
|
|
585
|
+
"markdown": "CVE-2024-29041: Express.js Open Redirect in malformed URLs",
|
|
586
|
+
"text": "CVE-2024-29041: Express.js Open Redirect in malformed URLs"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"deprecatedIds": [
|
|
591
|
+
"CVE-2021-32050",
|
|
592
|
+
"GHSA-vxvm-qww3-2fh7"
|
|
593
|
+
],
|
|
594
|
+
"fullDescription": {
|
|
595
|
+
"markdown": "Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.\n\nWithout due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).\n\nThis issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).",
|
|
596
|
+
"text": "Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.\n\nWithout due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).\n\nThis issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0)."
|
|
597
|
+
},
|
|
598
|
+
"help": {
|
|
599
|
+
"markdown": "**Your dependency is vulnerable to [CVE-2021-32050](https://osv.dev/CVE-2021-32050)**.\n\n## [GHSA-vxvm-qww3-2fh7](https://osv.dev/GHSA-vxvm-qww3-2fh7)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.\n\u003e \n\u003e Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).\n\u003e \n\u003e This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | mongodb | 4.0.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-vxvm-qww3-2fh7 | mongodb/mongodb | 1.9.2 |\n| GHSA-vxvm-qww3-2fh7 | mongodb | 3.6.10, 4.17.0, 5.8.0 |\n| GHSA-vxvm-qww3-2fh7 | github.com/mongodb/mongo-swift-driver | 1.1.1 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2021-32050\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n",
|
|
600
|
+
"text": "**Your dependency is vulnerable to [CVE-2021-32050](https://osv.dev/CVE-2021-32050)**.\n\n## [GHSA-vxvm-qww3-2fh7](https://osv.dev/GHSA-vxvm-qww3-2fh7)\n\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n\u003e Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.\n\u003e \n\u003e Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).\n\u003e \n\u003e This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).\n\n\u003c/details\u003e\n\n---\n\n### Affected Packages\n\n| Source | Package Name | Package Version |\n| --- | --- | --- |\n| lockfile:/Users/john.doe/projects/javascript/npm/package-lock.json | mongodb | 4.0.0 |\n\n## Remediation\n\nTo fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.\n\n### Fixed Versions\n\n| Vulnerability ID | Package Name | Fixed Version |\n| --- | --- | --- |\n| GHSA-vxvm-qww3-2fh7 | mongodb/mongodb | 1.9.2 |\n| GHSA-vxvm-qww3-2fh7 | mongodb | 3.6.10, 4.17.0, 5.8.0 |\n| GHSA-vxvm-qww3-2fh7 | github.com/mongodb/mongo-swift-driver | 1.1.1 |\n\nIf you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an\n`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.\n\nSee the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/\n\nAdd or append these values to the following config files to ignore this vulnerability:\n\n`/Users/john.doe/projects/javascript/npm/osv-scanner.toml`\n\n```\n[[IgnoredVulns]]\nid = \"CVE-2021-32050\"\nreason = \"Your reason for ignoring this vulnerability\"\n```\n"
|
|
601
|
+
},
|
|
602
|
+
"id": "CVE-2021-32050",
|
|
603
|
+
"name": "CVE-2021-32050",
|
|
604
|
+
"properties": {
|
|
605
|
+
"security-severity": "4.2"
|
|
606
|
+
},
|
|
607
|
+
"relationships": [],
|
|
608
|
+
"shortDescription": {
|
|
609
|
+
"markdown": "CVE-2021-32050: MongoDB Driver may publish events containing authentication-related data",
|
|
610
|
+
"text": "CVE-2021-32050: MongoDB Driver may publish events containing authentication-related data"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"supportedTaxonomies": [],
|
|
615
|
+
"taxa": [],
|
|
616
|
+
"version": "2.2.0"
|
|
617
|
+
},
|
|
618
|
+
"extensions": []
|
|
619
|
+
},
|
|
620
|
+
"translations": [],
|
|
621
|
+
"versionControlProvenance": [],
|
|
622
|
+
"webRequests": [],
|
|
623
|
+
"webResponses": []
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"properties": {}
|
|
627
|
+
}
|