Skip to content

Commit a1c6e7c

Browse files
authored
Merge pull request #1054 from dennispaagman/json-schema-yaml-validation
Json schema yaml validation
2 parents b75f47d + c9a9e75 commit a1c6e7c

18 files changed

Lines changed: 360 additions & 58 deletions

Gemfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
source 'https://rubygems.org'
22

33
gem 'rake'
4-
gem 'faraday', '~> 2.0'
5-
gem 'kwalify', '~> 0.1'
6-
gem 'rspec', '~> 3.0'
4+
gem 'faraday', '~> 2.0'
5+
gem 'kwalify', '~> 0.1'
6+
gem 'json_schemer', '~> 2.0'
7+
gem 'rspec', '~> 3.0'
78

89
group :development do
910
gem 'pry'

gems/bootstrap-sass/CVE-2018-14042.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ patched_versions:
1818
- ">= 4.1.2"
1919
related:
2020
cve:
21-
- CVE-2018-14041
21+
- 2018-14041
2222
url:
2323
- https://nvd.nist.gov/vuln/detail/CVE-2018-14042
2424
- https://github.com/twbs/bootstrap/issues/26423

gems/httparty/CVE-2025-68696.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -55,44 +55,6 @@ description: |
5555
Also, Python's `urljoin` function has documented a warning about similar behavior:
5656
<https://docs.python.org/3.13/library/urllib.parse.html#urllib.parse.urljoin>
5757
58-
## PoC
59-
60-
Follow these steps to reproduce the issue:
61-
62-
1. Set up two simple HTTP servers.
63-
64-
```bash
65-
mkdir /tmp/server1 /tmp/server2
66-
echo "this is server1" > /tmp/server1/index.html
67-
echo "this is server2" > /tmp/server2/index.html
68-
python -m http.server -d /tmp/server1 10001 &
69-
python -m http.server -d /tmp/server2 10002 &
70-
```
71-
72-
2. Create a script (for example, `main.rb`):
73-
74-
```rb
75-
require 'httparty'
76-
77-
class Client
78-
include HTTParty
79-
base_uri 'http://localhost:10001'
80-
end
81-
82-
data = Client.get('http://localhost:10002').body
83-
puts data
84-
```
85-
86-
3. Run the script:
87-
88-
```bash
89-
$ ruby main.rb
90-
this is server2
91-
```
92-
93-
Although `base_uri` is set to `http://localhost:10001/`, httparty sends the request to `http://localhost:10002/`.
94-
95-
9658
## Impact
9759
9860
- Leakage of credentials: If an absolute URL is provided, any API keys or credentials configured in httparty may be exposed to unintended third-party hosts.

gems/nokogiri/GHSA-5w6v-399v-w3cc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ patched_versions:
5050
- ">= 1.18.8"
5151
related:
5252
cve:
53-
- CVE-2025-32414
54-
- CVE-2025-32415
53+
- 2025-32414
54+
- 2025-32415
5555
url:
5656
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-5w6v-399v-w3cc
5757
- https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.8

gems/nokogiri/GHSA-mrxw-mxhj-p664.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ related:
4040
- https://gitlab.gnome.org/GNOME/libxslt/-/issues/128
4141
- https://github.com/advisories/GHSA-mrxw-mxhj-p664
4242
cve:
43-
- https://nvd.nist.gov/vuln/detail/CVE-2024-55549
44-
- https://nvd.nist.gov/vuln/detail/CVE-2025-24855
43+
- 2024-55549
44+
- 2025-24855

gems/omniauth-saml/CVE-2024-45409.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ patched_versions:
2020
- ">= 2.2.1"
2121
related:
2222
ghsa:
23-
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq
24-
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2
25-
- https://github.com/advisories/GHSA-cvp8-5r8g-fhvq
23+
- cvp8-5r8g-fhvq
24+
- jw9c-mfg7-9rx2
2625
url:
2726
- https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd
2827
- https://github.com/omniauth/omniauth-saml/commit/6c681fd082ab3daf271821897a40ab3417382e29

gems/rack-session/CVE-2025-46336.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ patched_versions:
5050
- ">= 2.1.1"
5151
related:
5252
ghsa:
53-
- https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g
53+
- vpfw-47h7-xj4g
5454
url:
5555
- https://nvd.nist.gov/vuln/detail/CVE-2025-46336
5656
- https://github.com/rack/rack-session/commit/c28c4a8c1861d814e09f2ae48264ac4c40be2d3b

gems/rack/CVE-2025-32441.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ patched_versions:
4848
- ">= 2.2.14"
4949
related:
5050
ghsa:
51-
- https://github.com/rack/rack-session/security/advisories/GHSA-9j94-67jr-4cqj
51+
- 9j94-67jr-4cqj
5252
url:
5353
- https://nvd.nist.gov/vuln/detail/CVE-2025-32441
5454
- https://github.com/rack/rack/security/advisories/GHSA-vpfw-47h7-xj4g

gems/rdoc/CVE-2024-27281.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ cvss_v3: 4.5
3333
patched_versions:
3434
- "~> 6.3.4, >= 6.3.4.1"
3535
- "~> 6.4.1, >= 6.4.1.1"
36-
- ">= 6.5.1.1"
36+
- ">= 6.5.1.1"

gems/rexml/CVE-2024-39908.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ patched_versions:
3333
- ">= 3.3.2"
3434
related:
3535
ghsa:
36-
- https://github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh
36+
- vg3r-rm7w-2xgh
3737
url:
3838
- https://www.ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908
3939
- https://github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8

0 commit comments

Comments
 (0)