It's a matter of trust. If your friend has a kind heart, she may have trusted you enough to share this potentially embarrassing admission. And that's all it was — with no ulterior motives or desires behind it.
However, trust your gut. If you have reason to distrust this friend — or your husband — keep a watchful eye. Communicate with both. Nip any problems in the bud before they spiral out of control.