Regular white shaving cream is very unlikely to bleach your carpet, but colored shaving creams, gels, or soaps, could cause discoloration – especially on lighter-colored carpets and rugs. As a result, it is best to use a standard, white foam with no fragrance and spot-test it on a small inconspicuous area first before applying it to a stain.