The state government sought a last-minute injunction in the Supreme Court on Monday evening to stop the publication of a story on Nine News Perth.

The Supreme Court injunction was sought by the State Solicitor's Office. Credit:Erin Jonasson

In a rare move, the State Solicitor's Office received the order from Justice Curthoys one hour before the report was due to run on the network's 6pm news bulletin.

A Department of Communities spokesman clarified why the injunction was sought.

"The [department] yesterday took the uncommon step of seeking a court injunction against a Perth media outlet in order to protect the privacy of a third party and ensure the department fulfils its legal obligations," he said.