@open-e2ee/signal-protocol-sdk 0.2.1 → 0.2.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
- **`@noble/post-quantum` 0.6.1 → 0.7.0.** Upstream hardening of the
|
|
6
|
+
primitives under the post-quantum ratchet: an intermediate-overflow fix
|
|
7
|
+
in ML-KEM's NTT multiplication, stricter input validation throughout,
|
|
8
|
+
and ML-KEM public-key cache detachment. The 0.7.0 breaking changes are
|
|
9
|
+
confined to hybrid-KEM aliases and a utils export, neither of which this
|
|
10
|
+
package imports. The bump also unifies the dependency tree on single
|
|
11
|
+
copies of `@noble/hashes` and `@noble/curves` 2.3.0.
|
|
12
|
+
|
|
13
|
+
## 0.2.2
|
|
14
|
+
|
|
15
|
+
- **The unfixable `image-size` development dependency is replaced with an
|
|
16
|
+
inert local stub.** Both open advisories against `image-size` cover every
|
|
17
|
+
released version and have no fix. The package reaches the tree only
|
|
18
|
+
through Metro's image-asset pipeline, which nothing in this repository
|
|
19
|
+
exercises. An npm override now points it at a local package that throws
|
|
20
|
+
on use, so the development install carries no known-vulnerable code and
|
|
21
|
+
`npm audit` reports clean across the whole tree.
|
|
22
|
+
|
|
23
|
+
- **Continuous fuzzing runs against the parser seams.** ClusterFuzzLite
|
|
24
|
+
builds Jazzer.js fuzz targets over the wire-message, sender-key,
|
|
25
|
+
sealed-sender, and post-quantum ratchet decoders, the base64 conversions,
|
|
26
|
+
and the persistent session-record codec, on every push, pull request, and
|
|
27
|
+
manual dispatch. Writing the targets' rejection contract surfaced one
|
|
28
|
+
defect, fixed here: a session record with a malformed map encoding
|
|
29
|
+
escaped the codec as a `TypeError` instead of its controlled error.
|
|
30
|
+
|
|
31
|
+
- **The README carries the OpenSSF Best Practices badge.** The project
|
|
32
|
+
earned the passing level at bestpractices.dev (project 14043).
|
|
33
|
+
|
|
34
|
+
- **`SECURITY.md` states the supported release line correctly.** The
|
|
35
|
+
supported-versions table had not moved past 0.1.x; it now names 0.2.x
|
|
36
|
+
and states the no-backports rule.
|
|
37
|
+
|
|
3
38
|
## 0.2.1
|
|
4
39
|
|
|
5
40
|
- **Two GitHub code-scanning findings in shipped code are fixed.** The
|
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
[](https://www.npmjs.com/package/@open-e2ee/signal-protocol-sdk#provenance)
|
|
12
12
|
[](https://github.com/open-e2ee/signal-protocol-js/actions/workflows/ci.yml)
|
|
13
13
|
[](https://scorecard.dev/viewer/?uri=github.com/open-e2ee/signal-protocol-js)
|
|
14
|
+
[](https://www.bestpractices.dev/projects/14043)
|
|
14
15
|
|
|
15
16
|
[Website](https://open-e2ee.dev) ·
|
|
16
17
|
[Docs](https://docs.open-e2ee.dev) ·
|
package/SECURITY.md
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Supported Versions
|
|
4
4
|
|
|
5
|
+
Security fixes ship in the newest release line. Older lines receive no
|
|
6
|
+
backports.
|
|
7
|
+
|
|
5
8
|
| Version | Supported |
|
|
6
9
|
| ------- | ------------------ |
|
|
7
|
-
| 0.
|
|
10
|
+
| 0.2.x | :white_check_mark: |
|
|
11
|
+
| < 0.2.0 | :x: |
|
|
8
12
|
|
|
9
13
|
## Reporting a Vulnerability
|
|
10
14
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-codec.d.ts","sourceRoot":"","sources":["../../../local/store/session-codec.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAcpE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"session-codec.d.ts","sourceRoot":"","sources":["../../../local/store/session-codec.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAcpE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CA0BpE"}
|
|
@@ -30,9 +30,12 @@ export function deserializeSessionRecord(json) {
|
|
|
30
30
|
return Uint8Array.from(value.value);
|
|
31
31
|
}
|
|
32
32
|
if (value && typeof value === 'object' && value[SESSION_JSON_TYPE_TAG] === 'map') {
|
|
33
|
-
|
|
33
|
+
const entries = value.entries;
|
|
34
|
+
if (!Array.isArray(entries) ||
|
|
35
|
+
!entries.every((entry) => Array.isArray(entry) && entry.length === 2)) {
|
|
34
36
|
throw new Error('Invalid Map encoding in session record');
|
|
35
|
-
|
|
37
|
+
}
|
|
38
|
+
return new Map(entries);
|
|
36
39
|
}
|
|
37
40
|
return value;
|
|
38
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-codec.js","sourceRoot":"","sources":["../../../local/store/session-codec.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,EACL,0BAA0B,GAE3B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAEzD,MAAM,UAAU,sBAAsB,CAAC,MAAqB;IAC1D,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACnC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE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.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-e2ee/signal-protocol-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Signal Protocol E2EE SDK for TypeScript — Expo, React Native, browser, and Node. Post-quantum PQXDH and Double Ratchet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"open-e2ee",
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
"@noble/ciphers": "^2.3.0",
|
|
422
422
|
"@noble/curves": "^2.2.0",
|
|
423
423
|
"@noble/hashes": "2.3.0",
|
|
424
|
-
"@noble/post-quantum": "^0.
|
|
424
|
+
"@noble/post-quantum": "^0.7.0",
|
|
425
425
|
"async-lock": "^1.4.0",
|
|
426
426
|
"unique-names-generator": "^4.7.1"
|
|
427
427
|
},
|
|
@@ -429,7 +429,8 @@
|
|
|
429
429
|
"xcode": {
|
|
430
430
|
"uuid": "11.1.1"
|
|
431
431
|
},
|
|
432
|
-
"brace-expansion": "^5.0.9"
|
|
432
|
+
"brace-expansion": "^5.0.9",
|
|
433
|
+
"image-size": "file:./vendor/image-size-disabled"
|
|
433
434
|
},
|
|
434
435
|
"devDependencies": {
|
|
435
436
|
"@convex-dev/r2": "^0.10.2",
|