If you use this as your production database on the public internet that’s entirely on you. It’s the same issue people have with Redis.
Edit: case study: Optus, who leaked pii due to an unauthenticated api intended for internal use only but accidentally exposed to the internet.