EXHIBIT 5.1

17 N. Second Street, 16th Floor
Harrisburg, PA 17101
(717) 234-1090
www.stevenslee.com
August 7, 2023
Board of Directors
CCFNB Bancorp, Inc.
232 East Street
Bloomsburg, PA 17815
Re: CCFNB Bancorp, Inc.; Amendment No. 1 to Registration Statement on Form S-4
Dear Ladies and Gentlemen:
We have acted as counsel to CCFNB Bancorp, Inc., a Pennsylvania corporation (the “Company”), in connection with the preparation and filing of the above-referenced Registration Statement (the “Initial Registration Statement”) under the Securities Act of 1933, as amended (the “Securities Act”), with the Securities and Exchange Commission (the “Commission”) on June 29, 2023, and the preparation and filing of Amendment No. 1 to the Initial Registration Statement (the “Amendment” and, together with the Initial Registration Statement, the “Registration Statement”). The Registration Statement relates to the proposed offering and sale of up to 1,489,179 shares (the “Shares”) of the Company’s common stock, par value $1.25 per share (the “Common Stock”), in connection with the merger (the “Merger”) of Muncy Bank Financial, Inc., a Pennsylvania corporation (“MBF”), with and into the Company, pursuant to the Agreement and Plan of Merger, dated as April 17, 2023, as amended by that certain Amendment to Agreement and Plan of Merger dated June 21, 2023 (together, the “Agreement”), by and between the Company and MBF.
In rendering this opinion, we have (i) examined the Agreement, (ii) examined the Registration Statement and the exhibits thereto, (iii) examined and relied upon original, certified, conformed, photostat or other copies of the Articles of Incorporation and Bylaws of the Company, each as restated and/or amended to date, minutes of meetings and resolutions of the Board of Directors of the Company, and (iv) a specimen certificate representing the Common Stock. We have also examined originals or copies, certified or otherwise identified to our satisfaction, of such records of the Company and such agreements, certificates and receipts of public officials, certificates of officers or other representatives of the Company and others, and such other documents as we have deemed necessary or appropriate as a basis for the opinion stated below.
In our examination, we have assumed the genuineness of all signatures, including endorsements, the legal capacity and competency of all natural persons, the authenticity of all documents submitted to us as originals, the conformity to original documents of all documents submitted to us as facsimile, electronic, certified or photocopied copies, and the authenticity of the originals of such copies. As to any facts relevant to the opinion stated herein that we did not independently establish or verify, we have, with your consent, relied upon oral and written statements and representations of officers and other representatives of the Company and others and of public officials, including the factual representations and warranties contained in the Agreement.
Allentown • Bergen County • Bala Cynwyd • Fort Lauderdale • Harrisburg • Lancaster • New York
Philadelphia • Princeton • Reading • Rochester • Scranton • Valley Forge • Wilkes-Barre • Wilmington
A PROFESSIONAL CORPORATION