Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in this Registration Statement on Form S-8 of CNB Financial Corporation of our reports dated March 6, 2025, with respect to the consolidated financial statements of CNB Financial Corporation and the effectiveness of internal control over financial reporting, included in the Annual Report on Form 10-K for the year ended December 31, 2024.
/s/ Forvis Mazars, LLP
Indianapolis, Indiana
April 15, 2025