Exhibit 5.1

| Universe Pharmaceuticals INC | D +1 345-949-9876 |
| Vistra (Cayman) Limited, P.O. Box 31119, | E bradley.kruger@ogier.com |
| Grand Pavilion, Hibiscus Way, | |
| 802 West Bay Road, Grand Cayman, | Reference: 427205.00001 |
| KY1-1205, Cayman Islands | |
| 29 September 2026 |
Universe Pharmaceuticals INC (the Company)
We have been requested to provide you with an opinion on matters of Cayman Islands law in connection with the Company's registration statement on Form F-3, including all amendments or supplements thereto, filed with the United States Securities and Exchange Commission (the Commission) under the United States Securities Act of 1933 (the Act), as amended, (including its exhibits, the Registration
| (a) | to 4,376,552 Class A ordinary shares of the Company with a par value of US$0.00001 each (the Resale Shares) issued pursuant to the share purchase agreement between the Company and Ms. Lu Shanshan dated 17 June 2026 (the SPA); and |
| (b) | the offering and sale of up to US$200,000,000 worth of the following securities to be issued by the Company from time to time (together, the Securities): |
| (i) | Class A ordinary shares of par value US$0.00001 each in the capital of the Company (Shares); |
| (ii) | debt securities (the Debt Securities), which may or may not be converted into Shares; |
| (iii) | warrants to purchase Shares (the Warrants); |
| (iv) | rights to purchase Shares (the Rights); and/or |
| (v) | units comprising any combination of Shares, Debt Securities, Warrants and Rights (the Units). |
| Ogier (Cayman) LLP 89 Nexus Way Camana Bay Grand Cayman, KY1-9009 Cayman Islands T +1 345 949 9876 F +1 345 949 9877 ogier.com |
A list of Partners may be inspected on our website |
Universe Pharmaceuticals INC
29 September 2026
The Securities shall be issued pursuant to types of agreements more fully described in the Registration Statement, which are referred to herein collectively as Transaction Documents.
This opinion is given in accordance with the terms of the Legal Matters section of the Registration Statement.
Unless a contrary intention appears, all capitalised terms used in this opinion have the respective meanings set forth in Schedule 1. A reference to a Schedule is a reference to a schedule to this opinion and the headings herein are for convenience only and do not affect the construction of this opinion.
| 1 | Documents examined |
For the purposes of giving this opinion, we have examined the corporate and other documents and conducted the searches listed in Schedule 1. We have not made any searches or enquiries concerning, and have not examined any documents entered into by or affecting the Company or any other person, save for the searches, enquiries and examinations expressly referred to in Schedule 1.
| 2 | Assumptions |
In giving this opinion we have relied upon the assumptions set forth in Schedule 2 without having carried out any independent investigation or verification in respect of those assumptions.
| 3 | Opinions |
On the basis of the examinations and assumptions referred to above and subject to the qualifications set forth in Schedule 3 and the limitations set forth below, we are of the opinion that:
Corporate status
| (a) | The Company has been duly incorporated as an exempted company with limited liability and is validly existing and in good standing with the Registrar of Companies of the Cayman Islands (the Registrar). |
Corporate power
| (b) | The Company has all requisite power under its Memorandum and Articles of Association to issue the Resale Shares, to execute and deliver the SPA and to perform its obligations under the SPA. |
2
Universe Pharmaceuticals INC
29 September 2026
Corporate authorisation
| (c) | The Company has taken all requisite corporate action to authorise the issuance of the Resale Shares and the execution and delivery of the SPA and the performance of its obligations under the SPA. |
Issuance of Resale Shares
| (d) | The Resale Shares have been validly issued and are fully paid and non-assessable. |
Issuance of Shares (excluding Resale Shares)
| (e) | The Shares (excluding the Resale Shares) to be offered and issued by the Company as contemplated by the Registration Statement (including the issuance of the Shares upon the conversion, exchange, redemption, repurchase or exercise of any Security) shall be validly issued, fully paid and non-assessable when: |
| (i) | the board of directors of the Company (the Board) has taken all necessary corporate actions to approve: |
| (A) | the form, terms, execution and delivery of the relevant Transaction Document; |
| (B) | the issuance and allotment of the Shares (including the issuance and allotment of the Shares upon conversion, exchange, redemption, repurchase or exercise of any Security) in accordance with the Transaction Document; and |
| (C) | all related matters; |
| (ii) | the provisions of the relevant Transaction Document have been satisfied and payment of the consideration specified therein has been made; |
| (iii) | if the Shares are issuable upon conversion, exchange, redemption, repurchase or exercise of any Security, the terms of such Security, as approved by the Board, have been satisfied and payment of the consideration specified thereby has been made; and |
| (iv) | the Shares have been entered on the register of members of the Company as fully paid. |
| 4 | Matters not covered |
We offer no opinion:
| (a) | as to any laws other than the laws of the Cayman Islands, and we have not, for the purposes of this opinion, made any investigation of the laws of any other jurisdiction, and we express no opinion as to the meaning, validity, or effect of references in any document to statutes, rules, regulations, codes or judicial authority of any jurisdiction other than the Cayman Islands; |
3
Universe Pharmaceuticals INC
29 September 2026
| (b) | except to the extent that this opinion expressly provides otherwise, as to the commercial terms of, or the validity, enforceability or effect of the documents reviewed (or as to how the commercial terms of such documents reflect the intentions of the parties), the accuracy of representations, the fulfilment of warranties or conditions, the occurrence of events of default or terminating events or the existence of any conflicts or inconsistencies among the documents and any other agreements into which the Company may have entered or any other documents; or |
| (c) | as to whether the acceptance, execution or performance of the Company’s obligations under the documents reviewed by us will result in the breach of or infringe any other agreement, deed or document (other than, to the extent expressly provided herein, the Memorandum and Articles of Association) entered into by or binding on the Company. |
| 5 | Governing law of this opinion |
| 5.1 | This opinion is: |
| (a) | governed by, and shall be construed in accordance with, the laws of the Cayman Islands; |
| (b) | limited to the matters expressly stated in it; and |
| (c) | confined to, and given on the basis of, the laws and practice in the Cayman Islands at the date of this opinion. |
| 5.2 | Unless otherwise indicated, a reference to any specific Cayman Islands legislation is a reference to that legislation as amended to, and as in force at, the date of this opinion. |
| 6 | Consent |
We hereby consent to the filing of this opinion as an exhibit to the Registration Statement and also consent to the reference to this firm in the Registration Statement under the heading “Legal Matters”. In the giving of our consent, we do not thereby admit that we are in the category of persons whose consent is required under Section 7 of the Act or the Rules and Regulations of the Commission thereunder.
Yours faithfully
/s/ Ogier (Cayman) LLP
Ogier (Cayman) LLP
4
Universe Pharmaceuticals INC
29 September 2026
Schedule 1
Documents examined
| 1 | The Certificate of Incorporation of the Company dated 11 December 2019 issued by the Registrar (the Certificate of Incorporation). |
| 2 | The amended and restated memorandum of association of the Company adopted by special resolution passed on 2 September 2025 (the Memorandum). |
| 3 | The amended and restated articles of association of the Company adopted by special resolution passed on 2 September 2025 (the Articles of Association). |
| 4 | A Certificate of Good Standing dated 23 September 2026 (the Good Standing Certificate) issued by the Registrar in respect of the Company. |
| 5 | A certificate dated on the date hereof as to certain matters of fact signed by a director of the Company in the form annexed hereto (the Director’s Certificate), having attached to it a copy of the written resolutions of the directors of the Company passed on 24 June 2026 and 23 September 2026 (the Resolutions). |
| 6 | The Register of Writs maintained by the office of the Clerk of Courts in the Cayman Islands as inspected by us on 28 September 2026 (the Register of Writs). |
| 7 | The Registration Statement. |
| 8 | An English language translation of the SPA. |
5
Universe Pharmaceuticals INC
29 September 2026
Schedule 2
Assumptions
Assumptions of general application
| 1 | All original documents examined by us are authentic and complete. |
| 2 | All copy documents examined by us (whether in facsimile, electronic or other form) conform to the originals and those originals are authentic and complete. |
| 3 | All signatures, seals, dates, stamps and markings (whether on original or copy documents) are genuine. |
| 4 | Each of the Good Standing Certificate and the Director’s Certificate is accurate and complete as at the date of this opinion. |
| 5 | There will be no intervening circumstance relevant to this opinion between the date hereof and the date upon which the Shares are issued. |
| 6 | There is nothing in any law (other than the laws of the Cayman Islands) that would or might affect the opinions herein. |
Status, authorisation and execution (SPA)
| 7 | The English language translation of the SPA provided to us is a complete and accurate translation of the original Chinese language SPA. |
| 8 | Each of the Selling Shareholders (as defined in the Registration Statement) were properly designated as recipients of the Resale Shares in accordance with the terms of the SPA. |
| 9 | Each of the parties to the SPA other than the Company and each of the Selling Shareholders are duly incorporated, formed or organised (as applicable), validly existing and in good standing under all relevant laws. |
| 10 | The SPA has been duly authorised, executed and unconditionally delivered by or on behalf of all parties to it in accordance with all applicable laws and, in respect of the Company, in the manner authorised by the Board. |
| 11 | In authorising the execution and delivery of the SPA by the Company, the issue and allotment of the Resale Shares, and the exercise of its rights and performance of its obligations under the SPA, each of the directors of the Company has acted in good faith with a view to the best interests of the Company and has exercised the standard of care, diligence and skill that is required of him or her. |
Status, authorisation and execution (Transaction Documents)
| 12 | Each of the parties to the Transaction Documents will be duly incorporated, formed or organised (as applicable), validly existing and in good standing under all relevant laws. |
6
Universe Pharmaceuticals INC
29 September 2026
| 13 | Each Transaction Document and Security will be duly authorised, executed and unconditionally delivered by or on behalf of all parties to it in accordance with all applicable laws and, in respect of the Company, in the manner authorised by the Board. |
| 14 | In authorising the execution and delivery of any Transaction Documents by the Company, the issue and allotment of any Securities (including the issuance and allotment of the Shares upon conversion, exchange, redemption, repurchase or exercise of any Security), and the exercise of the Company's rights and performance of its obligations under such documents, each of the directors of the Company has acted and will act in good faith with a view to the best interests of the Company and has exercised and will exercise the standard of care, diligence and skill that is required of him or her. |
Enforceability
| 15 | None of the opinions expressed herein will be adversely affected by the laws or public policies of any jurisdiction other than the Cayman Islands. In particular, but without limitation to the previous sentence: |
| (a) | the laws or public policies of any jurisdiction other than the Cayman Islands will not adversely affect the capacity or authority of the Company; and |
| (b) | neither the execution or delivery of the SPA nor Transaction Documents nor the exercise by any party to the SPA nor Transaction Documents of its rights or the performance of its obligations under them contravene those laws or public policies. |
Issuance of Resale Shares
| 16 | The Company issued all of the Resale Shares in accordance with the terms of the SPA and its Memorandum and Articles of Association. |
| 17 | The Company received consideration for the full issue price of the Resale Shares which was equal to or greater than the par value of the Resale Shares. |
| 18 | The Company had sufficient authorised share capital to effect the issue of the Resale Shares at the time of issuance. |
| 19 | The Company’s register of members has been updated to reflect the issuance of all of the Resale Shares in accordance with the Companies Act (Revised) of the Cayman Islands and the Memorandum and Articles of Association. |
| 20 | There are no circumstances or matters of fact existing which may properly form the basis for an application for an order for rectification of the register of members of the Company. |
Issuance of Shares (excluding Resale Shares)
| 21 | The Shares (including Shares issued upon conversion, exchange, redemption, repurchase or exercise of any Security) shall be issued at an issue price at least equal to the par value thereof. |
Register of Writs
| 22 | The Register of Writs constitutes a complete and accurate record of the proceedings affecting the Company before the Grand Court of the Cayman Islands as at the time we conducted our investigation of such register. |
7
Universe Pharmaceuticals INC
29 September 2026
Schedule 3
Qualifications
Good Standing
| 1 | Under the Companies Act (Revised) of the Cayman Islands (Companies Act) annual returns in respect of the Company must be filed with the Registrar, together with payment of annual filing fees. A failure to file annual returns and pay annual filing fees may result in the Company being struck off the Register of Companies, following which its assets will vest in the Financial Secretary of the Cayman Islands and will be subject to disposition or retention for the benefit of the public of the Cayman Islands. |
| 2 | In good standing means only that as of the date of the Good Standing Certificate the Company is up-to-date with the filing of its annual returns and payment of annual fees with the Registrar. We have made no enquiries into the Company's good standing with respect to any filings or payment of fees, or both, that it may be required to make under the laws of the Cayman Islands other than the Companies Act. |
Limited Liability
| 3 | We are not aware of any Cayman Islands authority as to when the courts would set aside the limited liability of a shareholder in a Cayman Islands company. Our opinion on the subject is based on the Companies Act and English common law authorities, the latter of which are persuasive but not binding in the courts of the Cayman Islands. Under English authorities, circumstances in which a court would attribute personal liability to a shareholder are very limited, and include: (a) such shareholder expressly assuming direct liability (such as a guarantee); (b) the company acting as the agent of such shareholder; and (c) the company being incorporated by or at the behest of such shareholder for the purpose of committing or furthering such shareholder’s fraud, or for a sham transaction otherwise carried out by such shareholder. In the absence of these circumstances, we are of the opinion that a Cayman Islands’ court would have no grounds to set aside the limited liability of a shareholder. |
Non-Assessable
| 4 | In this opinion, the phrase “non-assessable” means, with respect to the Shares in the Company, that a shareholder shall not, solely by virtue of its status as a shareholder, be liable for additional assessments or calls on the Shares by the Company or its creditors (except in exceptional circumstances, such as involving fraud, the establishment of an agency relationship or an illegal or improper purpose or other circumstance in which a court may be prepared to pierce or lift the corporate veil). |
8
Universe Pharmaceuticals INC
29 September 2026
Register of Writs
| 5 | Our examination of the Register of Writs cannot conclusively reveal whether or not there is: |
| (a) | any current or pending litigation in the Cayman Islands against the Company; or |
| (b) | any application for the winding up or dissolution of the Company or the appointment of any liquidator, trustee in bankruptcy or restructuring officer in respect of the Company or any of its assets, |
as notice of these matters might not be entered on the Register of Writs immediately or updated expeditiously or the court file associated with the matter or the matter itself may not be publicly available (for example, due to sealing orders having been made). Furthermore, we have not conducted a search of the summary court. Claims in the summary court are limited to a maximum of CI $20,000.
9