CVE-2026-124476: OpenEMR before 8.3.0 IDOR via form_pid in portal/lib/paylib.php
OpenEMR before 8.3.0 contains an insecure direct object reference in portal/lib/paylib.php, which writes the request-supplied formpid (or the patientidcc value in Sphere data) to onsiteportalactivity without checking it against the session patient. Authenticated portal patients can submit portal-save, review-save, AuthorizeNet, Stripe, or Sphere requests to insert or modify forged payment-audit records in other patients' billing records.