News for hackers. Stuff that matters.

Tell HN: Medvi (telehealth) hardcodes 999 patient emails in public JavaScript

Medvi is a telehealth pharmacy that has received significant media attention recently. While browsing their site with DevTools open, I noticed that their public JavaScript bundle contains a hardcoded list of 999 patient email addresses — along with each patient's enrollment date, active status, and whether a care manager has been assigned. This data is downloaded by every visitor's browser before any login occurs.

The list isn't a forgotten fixture. It's actively used: the app imports it, filters for active patients, and checks whether the logged-in user's email appears in the list to decide which UI features to display. Client-side feature flagging with real patient data baked into the bundle.

The same bundle also exposes a list of Season Health (Medvi's parent company) employee emails used to bypass checkout flows, and a separate list of Open Loop Health (their clinical provider) staff emails used to bypass intake form logic — both labeled as such in the source.

This is another great demonstration that relying only on large language models for product development is premature.

( 16 comments | 2 points | on HN )
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by speedgoose on Sunday April 26, 2026 @01:56AM (#47907739)
Looks like you used a LLM to write your post, or am I wrong?
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by thom-gtdp on Sunday April 26, 2026 @08:25AM (#47909771)
Totally agree Check the Wikipedia page "Signs of AI writing", found 2 of them in this post (overuse of em dash and negative parallelism) Also quickly checked Medvi, their JavaScript looks good...
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @10:03AM (#47910441)
Would you like me to show you specific JavaScript files right here?
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by thom-gtdp on Sunday April 26, 2026 @10:51AM (#47910811)
Yes please, I only checked the ones from homepage, I probably missed some if the other pages includes other scripts
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @01:13PM (#47911932)
Just open app.medvi.org and search in DevTools gmail/yahoo/icloud and you will see js bundle with emails.

or seasonhealth/openloophealth to find another js bundle with staff emails.

Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by thom-gtdp on Sunday April 26, 2026 @01:55PM (#47912311)
Mamma Mia I see them! Crazy 1018 customer mails addresses at first sight
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @02:24PM (#47912560)
Yes, and it's a company that makes hundreds of millions of dollars a year.
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @10:02AM (#47910428)
Yes, LLM assisted.
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by shoo on Sunday April 26, 2026 @06:03AM (#47908981)
Are the patient emails real patients or could they be test accounts?
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @10:01AM (#47910420)
They look like real people's email addresses. I checked a few. They belong to real people.
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by KomoD on Sunday April 26, 2026 @02:00PM (#47912354)
The emails are definitely real, I checked a few and they appear in HIBP.
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by pants2 on Sunday April 26, 2026 @02:04PM (#47912399)
So did you disclose this responsibly? Posting about it publicly first is asking for that sensitive data to be leaked. Might as well hack and repost that PII yourself.
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @03:04PM (#47912919)
This is not a data leakage. They deliberately included 999 of their customers' email addresses in publicly accessible JavaScript code in order to test certain features on them.
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by pants2 on Sunday April 26, 2026 @08:18PM (#47916311)
Certainly that wasn't intentional to broadcast to the public? Sounds like a textbook data leak.

> A data leak is the unauthorized, often unintentional exposure of sensitive, confidential, or personal information to an external party, usually resulting from weak infrastructure, human error, or system errors.

Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by thom-gtdp on Sunday April 26, 2026 @02:05PM (#47912416)
How do you find such data leaks? Do you manually check all websites you visit?
Re:Tell HN: Medvi (telehealth) hardcodes 999 patient emails ... by g48ywsJk6w48 on Sunday April 26, 2026 @02:59PM (#47912872)
I was curious to know which service provider they use. So I went to look at the source code of their websites.