Skip to content

[Medium] updatedProperty writes an unvalidated caller-controlled key/value into the render object #37

Open

Description

@primeobsession

What's wrong

results[updatedProperty.key]=updatedProperty.value with no allowlist. Mutates React state in place. Can inject javascript: into the href sink.

Where

opengraph-react + src/components/x.js:19 and siblings

Blame: BlArcher3127 106981675+BlArcher3127@users.noreply.github.com 2a08699e8dab624adf988cc99cf46d7597c6ccb7

Fix

Allowlist keys (title/description/image). Never accept url/video from this prop without the same scheme check as OGR-001.

Catalog

  • ARAD: ARAD-OGR-010
  • CWE: CWE-915
  • CVSS: 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Section: WSTG-4.7 Input Validation
  • Ref: src/components/x.js:19 (master)
  • Verification: verified

Activity

  1. added
    security
    arad
    on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    aradsecurityseverity:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions