Improper Input Validation
The Moped::BSON::ObjecId.legal? method in rubygem-moped before 1.5.3 and 2.0.x before 2.0.5 allows remote attackers to cause a denial of service (worker resource consumption) or perform a cross-site scripting (XSS) attack via a crafted string.
CWE-20 - Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.