Those LEDs run at high voltages, so yes it is dangerous. Even though you know not to stick your finger in there, years later someone else might not, and get hurt.
What about glueing it back together…? Some clear tape or so…
If the bulb is still working I wouldnt toss it, maybe you can just use them in a ceiling lamp where nobody can put his finger in…
There is some misinformation here. Name brand LED bulbs use a flyback converter circuit. Even cheap Chinese LED bulbs nowadays use it. Here is a good technical article on the topic.
A LOT of cheap LED bulbs (including CREE) use lots of LEDs in series driven off of a high voltage supply (either a switching supply or rectified line voltage on the really crappy bulbs). I’ve seen bulbs with over 200V on the LED string.
You can probably use it in a recessed ceiling light without problem since there is no danger of someone touching the bulb by accident. And without the diffuser, it will be brighter because diffusion is not needed in a recessed ceiling light.
if it works its likely still fine for a work light as long as you don’t stick your finger in it, lick it, put it in your mouth, nose etc. while turned on. i have a few that i cut the globes off to test them and prod their innards, and now use them globeless not in the garage or enclosed work lights.
I’d consider it safe in a fully-enclosed ball, bowl, or jar globe fixture. Might be OK for a plate-type ceiling light. Just nowhere that someone could inadvertently come into contact with it.