Passport validity
The source states no minimum passport validity.
Visa rules · Tourist entry
Entry rules for Western Sahara from its official sources, and every passport we have a page for.
Morocco controls entry to Western Sahara, so Moroccan entry rules apply.
Official sources
The source states no minimum passport validity.
Pick your passport for the full rule, its source quote and the check date.