Skip to content

Commit 3540444

Browse files
authored
Merge pull request #1212 from jasnow/ghsa-syncbot-2026-08-14-11_07_52
Updated 6 advisories; removed required CVE filename preference spec @simi - Thanks for reviewing and approving this PR.
2 parents 0c1a72a + 861a4a3 commit 3540444

8 files changed

Lines changed: 55 additions & 21 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ issue or submit a PR.
1919
The database is a list of directories that match the names of Ruby libraries on
2020
[rubygems.org]. Within each directory are one or more advisory files
2121
for the Ruby library. These advisory files are named using
22-
the advisories' [CVE] identifier number.
22+
the advisories' [CVE] or [GHSA] or [OSVDB] (legacy) identifier number.
2323

2424
```
2525
gems/:
@@ -212,12 +212,11 @@ patched_versions:
212212
# General Contributing Guidelines
213213

214214
* Advisory file name
215-
* Preference is CVE, then GHSA, then OSVDB, in that order.
215+
* Preference is CVE or GHSA over OSVDB file naming.
216216
* Should be equal to root `url:` field value.
217217
* For post-2016 advisories, use only "published" or "reserved" CVEs which are found at one of these web sites:
218218
* https://nvd.nist.gov/vuln/search
219219
* https://www.cve.org/CVERecord
220-
* When present, the CVE should be used in the primary "url:", "cve:", and "related:"/"url:" fields.
221220
* All text should be wrapped at 80 columns.
222221
* YAML must be indented by 2 spaces.
223222
* Ruby YAML does not like embedded ":" characters.

gems/action_text-trix/GHSA-53g2-mvcc-q9x3.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
gem: action_text-trix
3+
cve: 2026-73428
34
ghsa: 53g2-mvcc-q9x3
45
url: https://github.com/basecamp/trix/security/advisories/GHSA-53g2-mvcc-q9x3
56
title: Stored XSS via HTMLParser attribute injection on paste
@@ -38,13 +39,15 @@ patched_versions:
3839
- ">= 2.1.18"
3940
related:
4041
url:
42+
- https://nvd.nist.gov/vuln/detail/CVE-2026-73428
4143
- https://rubygems.org/gems/action_text-trix/versions/2.1.18
4244
- https://github.com/basecamp/trix/releases/tag/v2.1.18
4345
- https://github.com/basecamp/trix/pull/1293
46+
- https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c
4447
- https://github.com/advisories/GHSA-53p3-c7vp-4mcc
4548
- https://github.com/basecamp/trix/security/advisories/GHSA-53g2-mvcc-q9x3
49+
- https://github.com/advisories/GHSA-53g2-mvcc-q9x3
4650
notes: |
47-
- No CVE.
48-
- cvss_v3 from GHSA
51+
- cvss_v3 from GHSA URL.
4952
- date from gem releases page
5053
- Unnknown HackerOne number

gems/action_text-trix/GHSA-53p3-c7vp-4mcc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
gem: action_text-trix
3+
cve: 2026-73427
34
ghsa: 53p3-c7vp-4mcc
45
url: https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc
56
title: Trix is vulnerable to XSS through JSON deserialization bypass
@@ -39,7 +40,11 @@ patched_versions:
3940
- ">= 2.1.18"
4041
related:
4142
url:
42-
- https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc
43+
- https://nvd.nist.gov/vuln/detail/CVE-2026-73427
44+
- https://rubygems.org/gems/action_text-trix/versions/2.1.18
4345
- https://github.com/basecamp/trix/releases/tag/v2.1.18
4446
- https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c
47+
- https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc
4548
- https://github.com/advisories/GHSA-53p3-c7vp-4mcc
49+
notes: |
50+
- cvss_v4 from GHSA and nvd.nist.gov URLs.

gems/action_text-trix/GHSA-qmpg-8xg6-ph5q.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
gem: action_text-trix
3+
cve: 2026-73426
34
ghsa: qmpg-8xg6-ph5q
45
url: https://github.com/basecamp/trix/security/advisories/GHSA-qmpg-8xg6-ph5q
56
title: Trix has a Stored XSS vulnerability through serialized attributes
@@ -31,9 +32,14 @@ patched_versions:
3132
- ">= 2.1.17"
3233
related:
3334
url:
34-
- https://github.com/basecamp/trix/security/advisories/GHSA-qmpg-8xg6-ph5q
35+
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-73426
36+
- https://rubygems.org/gems/action_text-trix/versions/2.1.17
3537
- https://github.com/basecamp/trix/releases/tag/v2.1.17
3638
- https://github.com/basecamp/trix/pull/1282
3739
- https://github.com/basecamp/trix/commit/53197ab5a142e6b0b76127cb790726b274eaf1bc
3840
- https://hackerone.com/reports/3581911
41+
- https://github.com/basecamp/trix/security/advisories/GHSA-qmpg-8xg6-ph5q
3942
- https://github.com/advisories/GHSA-qmpg-8xg6-ph5q
43+
notes: |
44+
- cvss_v3 from GHSA
45+
- CVE is reserved, but not published.

gems/loofah/GHSA-8whx-365g-h9vv.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
gem: loofah
3+
cve: 2026-73491
34
ghsa: 8whx-365g-h9vv
45
url: https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv
56
title: Loofah `allowed_uri?` does not detect `javascript:` URIs
@@ -22,10 +23,12 @@ patched_versions:
2223
- ">= 2.25.2"
2324
related:
2425
url:
26+
- https://nvd.nist.gov/vuln/detail/CVE-2026-73491
2527
- https://rubygems.org/gems/loofah/versions/2.25.2
2628
- https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md#2252--2026-07-15
29+
- https://github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19
2730
- https://github.com/advisories/GHSA-46fp-8f5p-pf2m
2831
- https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv
32+
- https://github.com/advisories/GHSA-8whx-365g-h9vv
2933
notes: |
30-
- cvss_v4 from project GHSA
31-
- No CVE.
34+
- cvss_v4 from GHSA and nvd.nist.gov URLs.

gems/loofah/GHSA-9wjq-cp2p-hrgf.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
gem: loofah
33
ghsa: 9wjq-cp2p-hrgf
4+
cve: 2026-73490
45
url: https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf
56
title: SVG `href` attribute bypasses local-reference restriction in Loofah
67
date: 2026-07-15
@@ -34,9 +35,10 @@ patched_versions:
3435
- ">= 2.25.2"
3536
related:
3637
url:
38+
- https://nvd.nist.gov/vuln/detail/CVE-2026-73490
3739
- https://rubygems.org/gems/loofah/versions/2.25.2
3840
- https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md#2252--2026-07-15
41+
- https://github.com/flavorjones/loofah/commit/20867b9be689521887364b74822c41ef830523c9
3942
- https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf
4043
notes: |
41-
- cvss_v3 value from GHSA
42-
- No CVE.
44+
- cvss_v3 from GHSA and nvd.nist.gov URLs.

gems/rails-html-sanitizer/GHSA-cj75-f6xr-r4g7.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
gem: rails-html-sanitizer
33
framework: rails
4+
cve: 2026-73648
45
ghsa: cj75-f6xr-r4g7
56
url: https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7
67
title: Possible XSS vulnerability with certain configurations of
@@ -14,19 +15,42 @@ description: |
1415
SVG reference element such as <use>.
1516
See related GHSA-9wjq-cp2p-hrgf in Loofah, whose SVG local-reference
1617
logic rails-html-sanitizer mirrors.
18+
19+
## Impact
20+
21+
`Rails::HTML::PermitScrubber` restricts SVG reference elements in the
22+
`SVG_ALLOW_LOCAL_HREF` collection to local, same-document references,
23+
but that restriction covered only the `xlink:href` attribute. Browsers
24+
also accept a plain `href` attribute per the SVG 2 spec, and it was
25+
not restricted, so those elements could reference arbitrary external
26+
documents. SVG `<use>` can load and render external SVG content by
27+
reference, and if the referenced document is same-origin and contains
28+
scripts, it could execute in the context of the sanitized document.
29+
`<feImage>` can load external images, which can be used for tracking.
30+
31+
Applications are impacted only when the allowed tags are overridden
32+
to include one of these SVG reference elements, for example `<use>`
33+
or `<feImage>`. The default allowed tags do not include these SVG
34+
elements, so applications using the default configuration are not affected.
35+
36+
## Credit
37+
38+
Found by maintainer Mike Dalessio during a security audit.
1739
cvss_v4: 5.1
1840
unaffected_versions:
1941
- "< 1.0.3"
2042
patched_versions:
2143
- ">= 1.7.1"
2244
related:
2345
url:
46+
- https://nvd.nist.gov/vuln/detail/CVE-2026-73648
2447
- https://rubygems.org/gems/rails-html-sanitizer/versions/1.7.1
48+
- https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.1
2549
- https://github.com/rails/rails-html-sanitizer/blob/main/CHANGELOG.md#v171--2026-07-15
2650
- https://github.com/rails/rails-html-sanitizer/commit/74dcb8053e6da9921246ce71b06ad9fd65b19586
2751
- https://discuss.rubyonrails.org/t/ghsa-cj75-f6xr-r4g7-possible-xss-vulnerability-with-certain-configurations-of-rails-html-sanitizer/91359#post_1
2852
- https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf
2953
- https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cj75-f6xr-r4g7
54+
- https://github.com/advisories/GHSA-cj75-f6xr-r4g7
3055
notes: |
31-
- cvss_v4 from GHSA
32-
- No CVE.
56+
- cvss_v4 in GHSA and nvd.nist.gov URLs.

spec/advisory_example.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
expect(advisory['cve'] || advisory['osvdb'] || advisory['ghsa']).not_to be_nil
4444
end
4545

46-
it "should CVE-XXX if cve field has a value" do
47-
if advisory['cve']
48-
expect(filename).to start_with('CVE-')
49-
elsif advisory['ghsa']
50-
expect(filename).to start_with('GHSA-')
51-
end
52-
end
53-
5446
describe "platform" do
5547
subject { advisory['platform'] }
5648

0 commit comments

Comments
 (0)