It runs arbitrary JavaScript, which can oftentimes lead to remote code execution.
Moreover, in our mostly single-user 2026 operating systems, "not running as root" does not protect you from malware leaking personal files, saved credentials, SSH keys, cookies, passwords, etc.
Ladybird's javascript engine is written in Rust.
Not that Rust absolves all issues, but I'd trust it over any of the legacy C/C++ implementations out there.