A cut onion can release plenty of liquid without being spoiled. Cutting damages its cells and lets moisture escape, so liquid alone is not a reason to throw it away. Check for other signs of spoilage and consider how it was stored.
When to throw the onion away
Discard it if it has become slimy or unusually mushy, has mold, or smells sour, fermented, or rotten. A normal onion smell can be strong, but it should not smell unpleasant or markedly different from when it was fresh. Do not taste it to check.
Check how it was stored
If the onion looks and smells normal, it is generally safe to use if it was covered or kept in a clean, sealed container in a refrigerator at 40°F (4°C) or below. Use it within about 7 days of cutting, and discard it if you are unsure how long it has been stored.
If it sat at room temperature for more than 2 hours—or more than 1 hour in temperatures above 90°F (32°C)—discard it. When in doubt, throw it out.