webauthn 3.5.1 → 3.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e93639fca595fd28682976bb2197a31e0d5d68a2f87335dbb674ab8b4d4b76a6
4
- data.tar.gz: cbc8c2c458740266999bc2f0f68684d193766c54f3de1c7b3c69f20e462f2f42
3
+ metadata.gz: d710e1891023999984104214ea7a5341af1932e1b460eb41f1dac6ff49c0d80b
4
+ data.tar.gz: 818462f8be9f41b9b9f1ed86ea25bbe9212aefa242c299b04478998be4883228
5
5
  SHA512:
6
- metadata.gz: ea6219da89bbffdc181ecf37164c4eed601a9fb5dc32a5542d71b531d67acc09ce9da305a8b85d5824da40de4ba20ffebf47b66cc605c3e6ea1ecded570f60ea
7
- data.tar.gz: 982066ec26847b9effc45872061d9d99d492605ed38c35eeefb9d9244764669843af39370ed400a6f27a1215fec872e69538d1383f1fb74e66f2eb43d23a686d
6
+ metadata.gz: bf4c245d7b652cadea04534d4900100699bd92f6518134e8a85ace030ca10cc9b7eaecfef966413d644f231e1e90a892e16a382e3ed8e1a89bbc60fc185e14a1
7
+ data.tar.gz: b3897617a05c3c51b53155cd83e1e72d7c9fc73232d9a4921d7684226f394caffe979b987b43a5e09091b24811a7e1fad2ec3bfb0ef2beace38405f1c6d23106
@@ -27,24 +27,27 @@ jobs:
27
27
  - '3.2'
28
28
  - '3.1'
29
29
  openssl:
30
- - '4.0.0'
31
- - '3.6.0'
32
- - '3.5.4'
33
- - '3.4.3'
30
+ - '4.1.0'
31
+ - '4.0.3'
32
+ - '3.6.5'
33
+ - '3.5.9'
34
+ - '3.4.8'
34
35
  - '3.3.5'
35
36
  - '3.2.6'
36
37
  - '3.1.8'
37
38
  - '3.0.18'
38
39
  - '1.1.1w'
39
40
  exclude:
40
- # Ruby 3.1-3.3 bundle an `openssl` gem too old for OpenSSL 4.0.
41
+ # Ruby 3.1-3.2 bundle an `openssl` gem too old for OpenSSL 4.
41
42
  # Re-enable once upstream ships patch releases that bump it.
42
- - ruby: '3.3'
43
- openssl: '4.0.0'
44
43
  - ruby: '3.2'
45
- openssl: '4.0.0'
44
+ openssl: '4.1.0'
45
+ - ruby: '3.2'
46
+ openssl: '4.0.3'
47
+ - ruby: '3.1'
48
+ openssl: '4.1.0'
46
49
  - ruby: '3.1'
47
- openssl: '4.0.0'
50
+ openssl: '4.0.3'
48
51
  include:
49
52
  - ruby: truffleruby
50
53
  - ruby: '3.0'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.1...master/)
3
+ ## [Unreleased](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.2...master/)
4
+
5
+ ## [v3.5.2](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.1...v3.5.2/) - 2026-12-01
6
+
7
+ ### Deprecated
8
+
9
+ - Passing a value other than an Array to `allowed_origins` or `allowed_top_origins` now prints a deprecation warning. A future major version will raise an error instead. [GHSA-97v8-p42x-qfhv](https://github.com/cedarcode/webauthn-ruby/security/advisories/GHSA-97v8-p42x-qfhv) [@santiagorodriguez96]
10
+
11
+ ### Fixed
12
+
13
+ - Match origins exactly when `allowed_origins` or `allowed_top_origins` is set to a String. Before, origin verification accepted any origin that was a substring of the configured String. [GHSA-97v8-p42x-qfhv](https://github.com/cedarcode/webauthn-ruby/security/advisories/GHSA-97v8-p42x-qfhv) [@santiagorodriguez96]
4
14
 
5
15
  ## [v3.5.1](https://github.com/cedarcode/webauthn-ruby/compare/v3.5.0...v3.5.1/) - 2026-11-10
6
16
 
data/SECURITY.md CHANGED
@@ -4,14 +4,14 @@
4
4
 
5
5
  | Version | Supported |
6
6
  | ------- | ------------------ |
7
- | 2.5.z | :white_check_mark: |
8
- | 2.4.z | :white_check_mark: |
9
- | 2.3.z | :white_check_mark: |
10
- | 2.2.z | :x: |
11
- | 2.1.z | :x: |
12
- | 2.0.z | :x: |
13
- | 1.18.z | :white_check_mark: |
14
- | < 1.18 | :x: |
7
+ | 3.5.z | :white_check_mark: |
8
+ | 3.4.z | :white_check_mark: |
9
+ | 3.3.z | :white_check_mark: |
10
+ | 3.2.z | :x: |
11
+ | 3.1.z | :x: |
12
+ | 3.0.z | :x: |
13
+ | 2.5.z | :white_check_mark: |
14
+ | < 2.5 | :x: |
15
15
 
16
16
  ## Reporting a Vulnerability
17
17
 
@@ -33,8 +33,8 @@ module WebAuthn
33
33
  )
34
34
  @algorithms = algorithms
35
35
  @encoding = encoding
36
- @allowed_origins = allowed_origins
37
- @allowed_top_origins = allowed_top_origins
36
+ self.allowed_origins = allowed_origins
37
+ self.allowed_top_origins = allowed_top_origins
38
38
  @id = id
39
39
  @name = name
40
40
  @verify_attestation_statement = verify_attestation_statement
@@ -49,8 +49,6 @@ module WebAuthn
49
49
 
50
50
  attr_accessor :algorithms,
51
51
  :encoding,
52
- :allowed_origins,
53
- :allowed_top_origins,
54
52
  :id,
55
53
  :name,
56
54
  :verify_attestation_statement,
@@ -60,7 +58,31 @@ module WebAuthn
60
58
  :acceptable_attestation_types,
61
59
  :legacy_u2f_appid
62
60
 
63
- attr_reader :attestation_root_certificates_finders
61
+ attr_reader :allowed_origins,
62
+ :allowed_top_origins,
63
+ :attestation_root_certificates_finders
64
+
65
+ def allowed_origins=(origins)
66
+ if origins && !origins.is_a?(Array)
67
+ warn(
68
+ "DEPRECATION WARNING: Passing a #{origins.class} to `allowed_origins` is deprecated " \
69
+ "and will raise an error in a future version. Please use an Array instead."
70
+ )
71
+ end
72
+
73
+ @allowed_origins = origins.is_a?(String) ? [origins] : origins
74
+ end
75
+
76
+ def allowed_top_origins=(origins)
77
+ if origins && !origins.is_a?(Array)
78
+ warn(
79
+ "DEPRECATION WARNING: Passing a #{origins.class} to `allowed_top_origins` is deprecated " \
80
+ "and will raise an error in a future version. Please use an Array instead."
81
+ )
82
+ end
83
+
84
+ @allowed_top_origins = origins.is_a?(String) ? [origins] : origins
85
+ end
64
86
 
65
87
  # This is the user-data encoder.
66
88
  # Used to decode user input and to encode data provided to the user.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebAuthn
4
- VERSION = "3.5.1"
4
+ VERSION = "3.5.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webauthn
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodriguez