Skip to content

Commit e112fc1

Browse files
jasnowRubySec CI
authored andcommitted
Updated advisory posts against rubysec/ruby-advisory-db@6bb274f
1 parent 2448578 commit e112fc1

2 files changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: advisory
3+
title: 'CVE-2026-44836 (view_component): view_component - Preview Route Can Dispatch
4+
Inherited Helper Methods'''
5+
comments: false
6+
categories:
7+
- view_component
8+
advisory:
9+
gem: view_component
10+
cve: 2026-44836
11+
ghsa: 7f3r-gwc9-2995
12+
url: https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995
13+
title: view_component - Preview Route Can Dispatch Inherited Helper Methods'
14+
date: 2026-05-08
15+
description: |-
16+
The preview route derives an example name from the URL and calls it
17+
with `public_send`. The code does not verify that the requested
18+
method is one of the preview examples explicitly defined by the
19+
preview class.
20+
21+
As a result, inherited public methods on `ViewComponent::Preview`
22+
are route-reachable. The most important one is `render_with_template`,
23+
which accepts `template:` and `locals:`. Those values can come from
24+
request params and are later passed to Rails as `render template:`.
25+
26+
If previews are exposed, an attacker can render internal Rails
27+
templates that are not otherwise routable.
28+
29+
Severity: High if preview routes are externally reachable; Medium otherwise.
30+
cvss_v3: 6.5
31+
unaffected_versions:
32+
- "< 3.0.0"
33+
patched_versions:
34+
- ">= 4.9.0"
35+
related:
36+
url:
37+
- https://viewcomponent.org/CHANGELOG.html#490
38+
- https://github.com/ViewComponent/view_component/releases/tag/v4.9.0
39+
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-7f3r-gwc9-2995
40+
- https://github.com/advisories/GHSA-7f3r-gwc9-2995
41+
---
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: advisory
3+
title: 'CVE-2026-44837 (view_component): view_component - System Test Entry Point
4+
Path Check Allows Sibling Directory Escape'
5+
comments: false
6+
categories:
7+
- view_component
8+
advisory:
9+
gem: view_component
10+
cve: 2026-44837
11+
ghsa: hg3h-g7xc-f7vp
12+
url: https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp
13+
title: view_component - System Test Entry Point Path Check Allows Sibling Directory
14+
Escape
15+
date: 2026-05-08
16+
description: |-
17+
The system test entrypoint canonicalizes a user-controlled file path
18+
with `File.realpath`, then checks whether the resolved path starts
19+
with the temp directory path. This is not a safe containment check
20+
because sibling directories can share the same string prefix.
21+
22+
Severity: Medium; test-route scoped.
23+
cvss_v3: 5.9
24+
unaffected_versions:
25+
- "< 3.0.0"
26+
patched_versions:
27+
- ">= 4.9.0"
28+
related:
29+
url:
30+
- https://viewcomponent.org/CHANGELOG.html#490
31+
- https://github.com/ViewComponent/view_component/releases/tag/v4.9.0
32+
- https://github.com/ViewComponent/view_component/security/advisories/GHSA-hg3h-g7xc-f7vp
33+
- https://github.com/advisories/GHSA-hg3h-g7xc-f7vp
34+
---

0 commit comments

Comments
 (0)