I've often connected through GRU without a Brazilian visa in the passport. It's not an issue for shorter transits as posted earlier. That said, it's not a great airport to transit through, so I hope your transit is short enough that you don't get bored and long enough that you don't miss the connection.