Skip to content

Security: Add rel="noopener noreferrer" to external links using target="_blank" #700

Description

@SujalMahapatra

Description

Several external links open in a new tab using target="_blank".

Some links already include rel="noopener noreferrer", while others appear to be missing it. This inconsistency may expose the application to reverse tabnabbing attacks.

Potential Locations

  • apps/web/src/pages/LandingPage.tsx
  • apps/web/src/pages/LeaderboardPage.tsx
  • apps/web/src/pages/ProfilePage.tsx

Proposed Changes

  • Audit all external links using target="_blank".
  • Add rel="noopener noreferrer" where missing.
  • Keep behavior unchanged.

Benefits

  • Improves security.
  • Aligns with web security best practices.
  • Ensures consistency across the codebase.

Acceptance Criteria

  • All external links opened with target="_blank" include appropriate rel attributes.
  • No navigation regressions.
  • Existing checks continue to pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions