Skip to content

Commit a43af07

Browse files
arnaudbesnierPMerletNicolas Moreau
authored
fix(security): patch mongoose dependency vulnerabilities (#1255)
* fix(security): patch mongoose dependency vulnerabilities * fix(security): patch mongoose dependency vulnerabilities * chore: fix ts config * chore: try skiplibcheck * chore: bump version to 8.14.1 * chore: skipLibCheck * chore: test postinstall * chore: revert postinstall --------- Co-authored-by: Pierre Merlet <[email protected]> Co-authored-by: Nicolas Moreau <[email protected]>
1 parent f43e6d0 commit a43af07

File tree

6 files changed

+55
-27
lines changed

6 files changed

+55
-27
lines changed

packages/_example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"fastify2": "npm:fastify@^2.15.3",
2424
"koa": "^2.15.4",
2525
"mariadb": "^3.0.2",
26-
"mongoose": "8.8.4",
26+
"mongoose": "8.14.1",
2727
"mysql2": "^3.0.1",
2828
"pg": "^8.8.0",
2929
"reflect-metadata": "^0.1.13",

packages/datasource-mongo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@forestadmin/datasource-mongoose": "1.12.0",
1616
"@forestadmin/datasource-toolkit": "1.50.0",
1717
"json-stringify-pretty-compact": "^3.0.0",
18-
"mongoose": "8.8.4",
18+
"mongoose": "8.14.1",
1919
"tunnel-ssh": "^5.2.0"
2020
},
2121
"files": [

packages/datasource-mongoose/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"luxon": "^3.2.1"
2121
},
2222
"devDependencies": {
23-
"mongoose": "8.8.4"
23+
"mongoose": "8.14.1"
2424
},
2525
"peerDependencies": {
2626
"mongoose": "6.x || 7.x || >=8.0.0 <=8.8.x"

packages/datasource-mongoose/src/utils/pipeline/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export default class GroupGenerator {
1515
Year: '%Y-01-01',
1616
Quarter: '%Y-%m-01',
1717
Month: '%Y-%m-01',
18-
Day: '%Y-%m-%d',
1918
Week: '%Y-%m-%d',
19+
Day: '%Y-%m-%d',
2020
};
2121

2222
static group(aggregation: Aggregation): PipelineStage[] {

tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"declarationMap": true,
1010
"inlineSourceMap": true,
1111
"noImplicitOverride": true,
12-
"stripInternal": true
12+
"stripInternal": true,
13+
"skipLibCheck": true,
1314
},
14-
"files": ["global.d.ts"]
15-
}
15+
"files": [
16+
"global.d.ts"
17+
]
18+
}

yarn.lock

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@
22542254
dependencies:
22552255
sparse-bitfield "^3.0.3"
22562256

2257-
"@mongodb-js/saslprep@^1.1.5":
2257+
"@mongodb-js/saslprep@^1.1.9":
22582258
version "1.1.9"
22592259
resolved "https://registry.yarnpkg.com/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz#e974bab8eca9faa88677d4ea4da8d09a52069004"
22602260
integrity sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==
@@ -5424,10 +5424,10 @@ bson@^4.7.2:
54245424
dependencies:
54255425
buffer "^5.6.0"
54265426

5427-
bson@^6.7.0:
5428-
version "6.10.1"
5429-
resolved "https://registry.yarnpkg.com/bson/-/bson-6.10.1.tgz#dcd04703178f5ecf5b25de04edd2a95ec79385d3"
5430-
integrity sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==
5427+
bson@^6.10.3:
5428+
version "6.10.3"
5429+
resolved "https://registry.yarnpkg.com/bson/-/bson-6.10.3.tgz#5f9a463af6b83e264bedd08b236d1356a30eda47"
5430+
integrity sha512-MTxGsqgYTwfshYWTRdmZRC+M7FnG1b4y7RO7p2k3X24Wq0yv1m77Wsj0BzlPzd/IowgESfsruQCUToa7vbOpPQ==
54315431

54325432
54335433
version "1.0.1"
@@ -11479,23 +11479,23 @@ [email protected]:
1147911479
"@aws-sdk/credential-providers" "^3.186.0"
1148011480
"@mongodb-js/saslprep" "^1.1.0"
1148111481

11482-
mongodb@~6.10.0:
11483-
version "6.10.0"
11484-
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-6.10.0.tgz#20a9f1cf3c6829e75fc39e6d8c1c19f164209c2e"
11485-
integrity sha512-gP9vduuYWb9ZkDM546M+MP2qKVk5ZG2wPF63OvSRuUbqCR+11ZCAE1mOfllhlAG0wcoJY5yDL/rV3OmYEwXIzg==
11482+
mongodb@~6.16.0:
11483+
version "6.16.0"
11484+
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-6.16.0.tgz#2a7a1986ec151d9c738fc8ce4cf4324c3f728a2f"
11485+
integrity sha512-D1PNcdT0y4Grhou5Zi/qgipZOYeWrhLEpk33n3nm6LGtz61jvO88WlrWCK/bigMjpnOdAUKKQwsGIl0NtWMyYw==
1148611486
dependencies:
11487-
"@mongodb-js/saslprep" "^1.1.5"
11488-
bson "^6.7.0"
11487+
"@mongodb-js/saslprep" "^1.1.9"
11488+
bson "^6.10.3"
1148911489
mongodb-connection-string-url "^3.0.0"
1149011490

11491-
mongoose@8.8.4:
11492-
version "8.8.4"
11493-
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.8.4.tgz#11e3991a7fd03596a79bc9f9b2fe8f3e75b7a30d"
11494-
integrity sha512-yJbn695qCsqDO+xyPII29x2R7flzXhxCDv09mMZPSGllf0sm4jKw3E9s9uvQ9hjO6bL2xjU8KKowYqcY9eSTMQ==
11491+
mongoose@8.14.1:
11492+
version "8.14.1"
11493+
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.14.1.tgz#3f2a2b4efab38e5aa740e78606529b4643d6ba74"
11494+
integrity sha512-ijd12vjqUBr5Btqqflu0c/o8Oed5JpdaE0AKO9TjGxCgywYwnzt6ynR1ySjhgxGxrYVeXC0t1P11f1zlRiE93Q==
1149511495
dependencies:
11496-
bson "^6.7.0"
11496+
bson "^6.10.3"
1149711497
kareem "2.6.3"
11498-
mongodb "~6.10.0"
11498+
mongodb "~6.16.0"
1149911499
mpath "0.9.0"
1150011500
mquery "5.0.0"
1150111501
ms "2.1.3"
@@ -14585,7 +14585,16 @@ string-similarity@^4.0.1:
1458514585
resolved "https://registry.yarnpkg.com/string-similarity/-/string-similarity-4.0.4.tgz#42d01ab0b34660ea8a018da8f56a3309bb8b2a5b"
1458614586
integrity sha512-/q/8Q4Bl4ZKAPjj8WerIBJWALKkaPRfrvhfF8k/B23i4nzrlRj2/go1m90In7nG/3XDSbOo0+pu6RvCTM9RGMQ==
1458714587

14588-
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
14588+
"string-width-cjs@npm:string-width@^4.2.0":
14589+
version "4.2.3"
14590+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
14591+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
14592+
dependencies:
14593+
emoji-regex "^8.0.0"
14594+
is-fullwidth-code-point "^3.0.0"
14595+
strip-ansi "^6.0.1"
14596+
14597+
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1458914598
version "4.2.3"
1459014599
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1459114600
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -14652,7 +14661,7 @@ string_decoder@~1.1.1:
1465214661
dependencies:
1465314662
safe-buffer "~5.1.0"
1465414663

14655-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
14664+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
1465614665
version "6.0.1"
1465714666
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1465814667
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -14680,6 +14689,13 @@ strip-ansi@^5.2.0:
1468014689
dependencies:
1468114690
ansi-regex "^4.1.0"
1468214691

14692+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
14693+
version "6.0.1"
14694+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
14695+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
14696+
dependencies:
14697+
ansi-regex "^5.0.1"
14698+
1468314699
strip-ansi@^7.0.1:
1468414700
version "7.1.0"
1468514701
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -15853,7 +15869,7 @@ wordwrap@>=0.0.2, wordwrap@^1.0.0:
1585315869
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
1585415870
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
1585515871

15856-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
15872+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
1585715873
version "7.0.0"
1585815874
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1585915875
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -15871,6 +15887,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
1587115887
string-width "^4.1.0"
1587215888
strip-ansi "^6.0.0"
1587315889

15890+
wrap-ansi@^7.0.0:
15891+
version "7.0.0"
15892+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
15893+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
15894+
dependencies:
15895+
ansi-styles "^4.0.0"
15896+
string-width "^4.1.0"
15897+
strip-ansi "^6.0.0"
15898+
1587415899
wrap-ansi@^8.1.0:
1587515900
version "8.1.0"
1587615901
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)