@fedify/fedify 1.4.0-dev.598 → 1.4.0-dev.607
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/CHANGES.md +108 -0
- package/LICENSE +1 -1
- package/esm/deno.js +1 -1
- package/esm/runtime/url.js +7 -1
- package/esm/vocab/object.yaml +32 -0
- package/esm/vocab/vocab.js +560 -174
- package/esm/webfinger/lookup.js +21 -1
- package/package.json +1 -1
- package/types/runtime/url.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +262 -0
- package/types/vocab/vocab.d.ts.map +1 -1
- package/types/webfinger/lookup.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -17,6 +17,20 @@ To be released.
|
|
17
17
|
- Added `ActorCallbackSetters.mapAlias()` method.
|
18
18
|
- Added `ActorAliasMapper` type.
|
19
19
|
|
20
|
+
- Added `shares` property to `Object` class in Activity Vocabulary API.
|
21
|
+
|
22
|
+
- Added `Object.sharesId` property.
|
23
|
+
- Added `Object.getShares()` method.
|
24
|
+
- `new Object()` constructor now accepts `shares` option.
|
25
|
+
- `Object.clone()` method now accepts `shares` option.
|
26
|
+
|
27
|
+
- Added `likes` property to `Object` class in Activity Vocabulary API.
|
28
|
+
|
29
|
+
- Added `Object.likesId` property.
|
30
|
+
- Added `Object.getLikes()` method.
|
31
|
+
- `new Object()` constructor now accepts `likes` option.
|
32
|
+
- `Object.clone()` method now accepts `likes` option.
|
33
|
+
|
20
34
|
- Added `emojiReactions` property to `Object` class in Activity Vocabulary
|
21
35
|
API.
|
22
36
|
|
@@ -34,6 +48,29 @@ To be released.
|
|
34
48
|
[#195]: https://github.com/dahlia/fedify/issues/195
|
35
49
|
|
36
50
|
|
51
|
+
Version 1.3.4
|
52
|
+
-------------
|
53
|
+
|
54
|
+
Released on January 21, 2025.
|
55
|
+
|
56
|
+
- Fixed several security vulnerabilities of the `lookupWebFinger()` function.
|
57
|
+
[[CVE-2025-23221]]
|
58
|
+
|
59
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
60
|
+
had followed the infinite number of redirects, which could lead to
|
61
|
+
a denial of service attack. Now it follows up to 5 redirects.
|
62
|
+
|
63
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
64
|
+
had followed the redirects to other than the HTTP/HTTPS schemes, which
|
65
|
+
could lead to a security breach. Now it follows only the same scheme
|
66
|
+
as the original request.
|
67
|
+
|
68
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
69
|
+
had followed the redirects to the private network addresses, which
|
70
|
+
could lead to a SSRF attack. Now it follows only the public network
|
71
|
+
addresses.
|
72
|
+
|
73
|
+
|
37
74
|
Version 1.3.3
|
38
75
|
-------------
|
39
76
|
|
@@ -178,6 +215,29 @@ Released on November 30, 2024.
|
|
178
215
|
[#193]: https://github.com/dahlia/fedify/issues/193
|
179
216
|
|
180
217
|
|
218
|
+
Version 1.2.11
|
219
|
+
--------------
|
220
|
+
|
221
|
+
Released on January 21, 2025.
|
222
|
+
|
223
|
+
- Fixed several security vulnerabilities of the `lookupWebFinger()` function.
|
224
|
+
[[CVE-2025-23221]]
|
225
|
+
|
226
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
227
|
+
had followed the infinite number of redirects, which could lead to
|
228
|
+
a denial of service attack. Now it follows up to 5 redirects.
|
229
|
+
|
230
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
231
|
+
had followed the redirects to other than the HTTP/HTTPS schemes, which
|
232
|
+
could lead to a security breach. Now it follows only the same scheme
|
233
|
+
as the original request.
|
234
|
+
|
235
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
236
|
+
had followed the redirects to the private network addresses, which
|
237
|
+
could lead to a SSRF attack. Now it follows only the public network
|
238
|
+
addresses.
|
239
|
+
|
240
|
+
|
181
241
|
Version 1.2.10
|
182
242
|
--------------
|
183
243
|
|
@@ -402,6 +462,29 @@ Released on October 31, 2024.
|
|
402
462
|
[#118]: https://github.com/dahlia/fedify/issues/118
|
403
463
|
|
404
464
|
|
465
|
+
Version 1.1.11
|
466
|
+
--------------
|
467
|
+
|
468
|
+
Released on January 21, 2025.
|
469
|
+
|
470
|
+
- Fixed several security vulnerabilities of the `lookupWebFinger()` function.
|
471
|
+
[[CVE-2025-23221]]
|
472
|
+
|
473
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
474
|
+
had followed the infinite number of redirects, which could lead to
|
475
|
+
a denial of service attack. Now it follows up to 5 redirects.
|
476
|
+
|
477
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
478
|
+
had followed the redirects to other than the HTTP/HTTPS schemes, which
|
479
|
+
could lead to a security breach. Now it follows only the same scheme
|
480
|
+
as the original request.
|
481
|
+
|
482
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
483
|
+
had followed the redirects to the private network addresses, which
|
484
|
+
could lead to a SSRF attack. Now it follows only the public network
|
485
|
+
addresses.
|
486
|
+
|
487
|
+
|
405
488
|
Version 1.1.10
|
406
489
|
--------------
|
407
490
|
|
@@ -667,6 +750,31 @@ Released on October 20, 2024.
|
|
667
750
|
[#150]: https://github.com/dahlia/fedify/issues/150
|
668
751
|
|
669
752
|
|
753
|
+
Version 1.0.14
|
754
|
+
--------------
|
755
|
+
|
756
|
+
Released on January 21, 2025.
|
757
|
+
|
758
|
+
- Fixed several security vulnerabilities of the `lookupWebFinger()` function.
|
759
|
+
[[CVE-2025-23221]]
|
760
|
+
|
761
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
762
|
+
had followed the infinite number of redirects, which could lead to
|
763
|
+
a denial of service attack. Now it follows up to 5 redirects.
|
764
|
+
|
765
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
766
|
+
had followed the redirects to other than the HTTP/HTTPS schemes, which
|
767
|
+
could lead to a security breach. Now it follows only the same scheme
|
768
|
+
as the original request.
|
769
|
+
|
770
|
+
- Fixed a security vulnerability where the `lookupWebFinger()` function
|
771
|
+
had followed the redirects to the private network addresses, which
|
772
|
+
could lead to a SSRF attack. Now it follows only the public network
|
773
|
+
addresses.
|
774
|
+
|
775
|
+
[CVE-2025-23221]: https://github.com/dahlia/fedify/security/advisories/GHSA-c59p-wq67-24wx
|
776
|
+
|
777
|
+
|
670
778
|
Version 1.0.13
|
671
779
|
--------------
|
672
780
|
|
package/LICENSE
CHANGED
package/esm/deno.js
CHANGED
package/esm/runtime/url.js
CHANGED
@@ -38,7 +38,13 @@ export async function validatePublicUrl(url) {
|
|
38
38
|
}
|
39
39
|
// To prevent SSRF via DNS rebinding, we need to resolve all IP addresses
|
40
40
|
// and ensure that they are all public:
|
41
|
-
|
41
|
+
let addresses;
|
42
|
+
try {
|
43
|
+
addresses = await lookup(hostname, { all: true });
|
44
|
+
}
|
45
|
+
catch {
|
46
|
+
addresses = [];
|
47
|
+
}
|
42
48
|
for (const { address, family } of addresses) {
|
43
49
|
if (family === 4 && !isValidPublicIPv4Address(address) ||
|
44
50
|
family === 6 && !isValidPublicIPv6Address(address) ||
|
package/esm/vocab/object.yaml
CHANGED
@@ -202,6 +202,38 @@ properties:
|
|
202
202
|
range:
|
203
203
|
- "https://www.w3.org/ns/activitystreams#Collection"
|
204
204
|
|
205
|
+
- singularName: shares
|
206
|
+
functional: true
|
207
|
+
compactName: shares
|
208
|
+
uri: "https://www.w3.org/ns/activitystreams#shares"
|
209
|
+
description: |
|
210
|
+
Every object *may* have a `shares` collection. This is a list of all
|
211
|
+
{@link Announce} activities with this object as the `object` property,
|
212
|
+
added as a [side effect]. The `shares` collection *must* be either
|
213
|
+
an {@link OrderedCollection} or a {@link Collection} and *may* be filtered
|
214
|
+
on privileges of an authenticated user or as appropriate
|
215
|
+
when no authentication is given.
|
216
|
+
|
217
|
+
[side effect]: https://www.w3.org/TR/activitypub/#announce-activity-inbox
|
218
|
+
range:
|
219
|
+
- "https://www.w3.org/ns/activitystreams#Collection"
|
220
|
+
|
221
|
+
- singularName: likes
|
222
|
+
functional: true
|
223
|
+
compactName: likes
|
224
|
+
uri: "https://www.w3.org/ns/activitystreams#likes"
|
225
|
+
description: |
|
226
|
+
Every object *may* have a `likes` collection. This is a list of all
|
227
|
+
{@link Like} activities with this object as the `object` property,
|
228
|
+
added as a [side effect]. The `likes` collection *must* be either
|
229
|
+
an {@link OrderedCollection} or a {@link Collection} and *may* be filtered
|
230
|
+
on privileges of an authenticated user or as appropriate
|
231
|
+
when no authentication is given.
|
232
|
+
|
233
|
+
[side effect]: https://www.w3.org/TR/activitypub/#announce-activity-inbox
|
234
|
+
range:
|
235
|
+
- "https://www.w3.org/ns/activitystreams#Collection"
|
236
|
+
|
205
237
|
- singularName: emojiReactions
|
206
238
|
functional: true
|
207
239
|
compactName: emojiReactions
|