(1) Except in accordance with proper judicial order or as otherwise provided in this section or as authorized in Section 27-4-3, it shall be unlawful for the Commissioner of Revenue, or any deputy, agent, clerk or other officer or employee of the Department of Revenue, to divulge or make known in any manner the amount of income or any particulars set forth or disclosed in any report or return required on any taxes collected by reports received by the Department of Revenue. This provision relates to all taxes collected by the Department of Revenue and not referred to in Sections 27-7-83, 27-13-57 and 27-65-81, requiring confidentiality of income tax, franchise tax and sales tax returns. All system edits, thresholds, and any other automated system calculations used by the Department of Revenue in the processing of returns or statistics or used to determine the correct tax due for all taxes administered by the department shall be considered confidential information and may not be divulged or made known. Nothing in this section shall be construed to prohibit the publication of statistics, so classified as to prevent the identification of particular reports or returns and the items thereof, or the inspection by the Attorney General, or any other attorney representing the state, of the report or return of any taxpayer who shall bring action to set aside the tax thereon, or against whom an action or proceeding has been instituted to recover any tax or penalty imposed. Additionally, nothing in this section shall prohibit the Commissioner of Revenue from making available information necessary to recover taxes owing the state pursuant to the authority granted in Section 27-75-16. The term "proper judicial order" as used in this section shall not include subpoenas or subpoenas duces tecum but shall include only those orders entered by a court of record in this state after furnishing notice and a hearing to the taxpayer and the Department of Revenue. The court shall not authorize the furnishing of such information unless it is satisfied that the information is needed to pursue pending litigation wherein the return itself is in issue, or the judge is satisfied that the need for furnishing the information outweighs the rights of the taxpayer to have such information secreted.
However, information relating to possible tax liability to other states or the federal government may be furnished to the revenue departments of those states or the federal government when the states or federal government grant a like comity to Mississippi.