Skip to content

Commit 6bb274f

Browse files
authored
GHSA/SYNC: 2 new advisories (#1046)
1 parent 1029304 commit 6bb274f

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)