Skip to content

fix(security): 2 improvements across 2 files#15830

Open
tomaioo wants to merge 2 commits intoguardian:mainfrom
tomaioo:fix/security/tabnabbing-vulnerability-in-external-lin
Open

fix(security): 2 improvements across 2 files#15830
tomaioo wants to merge 2 commits intoguardian:mainfrom
tomaioo:fix/security/tabnabbing-vulnerability-in-external-lin

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented May 8, 2026

Summary

fix(security): 2 improvements across 2 files

Problem

Severity: Medium | File: ab-testing/frontend/src/lib/components/OphanLink.svelte:L10

The OphanLink.svelte and GrafanaLink.svelte components use target="_blank" without rel="noopener noreferrer", which allows the opened page to access window.opener and potentially redirect the original page. This is a known security issue called tabnabbing.

Solution

Add rel="noopener noreferrer" to the anchor tag:

Changes

  • ab-testing/frontend/src/lib/components/OphanLink.svelte (modified)
  • ab-testing/frontend/src/lib/components/GrafanaLink.svelte (modified)

tomaioo added 2 commits May 8, 2026 05:17
- Security: Tabnabbing vulnerability in external links
- Security: Tabnabbing vulnerability in external links

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
- Security: Tabnabbing vulnerability in external links
- Security: Tabnabbing vulnerability in external links

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@tomaioo tomaioo requested a review from a team as a code owner May 8, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant