LightSaml versions 4.6.1 through 5.0.0 contain a signature validation flaw allowing signature wrapping bypass. The vulnerability arises because LightSaml collects direct-child assertions for validation, but the underlying XML signature library (xmlseclibs) validates the signature against the first ID-bearing element in the entire document, which may differ. This discrepancy enables an attacker to present a forged assertion with attacker-controlled claims that appear signed by reusing a genuine signature from a buried assertion element. The issue is fixed in LightSaml versions 4.7.1 and 5.0.1.