New Delhi: Solicitor General of India Tushar Mehta wrote to Union Home Secretary Ajay Kumar Bhalla on Friday flagging a "serious security lapse" after Jammu Kashmir Liberation Front (JKLF) chief Yasin Malik, serving life term in Tihar jail, was brought to the Supreme Court for attending a case proceeding.