Nostrum is a Latin boast. It means "ours," and it was the label a seller put on a medicine to say that this one was his own.
The word is the neuter form of Latin noster, "our," which comes from nos, "we." Dictionary.com explains that the noun understood after it was remedium, "remedy," so a nostrum was "our remedy." The name stressed that the formula belonged to the person selling it and to nobody else.
English had the word by 1602, Merriam-Webster's date for its first known use. Its first meaning was a medicine of secret composition, recommended by the person who made it but usually without scientific proof that it worked. Merriam-Webster's Word of the Day note makes the point that the origin itself is harmless. The bad name came from the company the word kept.
Secrecy made the word sound shady. If a remedy's ingredients were hidden, buyers had to take the maker's word for it, and nostrum drifted toward quack medicine. Merriam-Webster quotes a 1990 Consumer Reports line about patent-medicine pitchmen "hustling notions and nostrums to gullible settlers."
From medicine, the word spread to ideas. Dictionary.com lists the sense "a pet scheme or remedy, especially for social or political ills." Merriam-Webster gives "a usually questionable remedy or scheme" and offers panacea as a synonym. That is the nostrum of political speeches: a favorite fix, offered with confidence, for a problem it may not solve.
The irony is in the grammar. A word that only meant "ours" became a judgment on the people who said it. Calling a plan a nostrum now implies that its owner may be the only one who believes in it.
The Latin pronoun still has relatives in English. The Indo-European Lexicon at the University of Texas lists nostrum beside paternoster, the Lord's Prayer, named from its opening Latin words. The same root, meaning "we," also produced the native English words us and our.