A new November 15 report, tracked by TipRanks and CNBC, highlights three stocks that analysts are positive on right now. Top-ranked analysts at Oppenheimer and BTIG just named Palo Alto Networks (PANW), MongoDB (MDB), and Costco Wholesale (COST) as their favorite long-term buys heading into 2027.

Those three stocks give investors a way to benefit from rising AI spending and recurring revenue when the tech market is volatile. 

Why these three stocks caught analyst attention right now

In recent times, software stocks have fallen as investors question how much of AI spending actually translates into profit. On top of that, chipmakers and the companies building data centers are facing growing regulatory pressure, Barron‘s reported.

Also read: AI is changing the KFC and Taco Bell experience for customers

But even with all that pressure, companies with loyal customers, strong recurring revenue, and good shareholder payouts keep catching the eye of top analysts. Palo Alto, MongoDB, and Costco each check at least one of those boxes. That is why they are showing up on buy lists.

Top-ranked analysts have tagged three stocks across software, databases, and retail as long-term buys for late 2026.

Bloomberg / Getty Images

Palo Alto Networks looks cheaper after a steep pullback

Palo Alto Networks sells cybersecurity software that protects companies from hackers. It creates tools that block unauthorized access to a business’s networks and cloud accounts. The company’s customers pay for this security software on a subscription basis. That setup gives the company steady revenue even when the wider economy slows down.

The stock has recently fallen more than 26% from its October peak near $432 to around $322. For patient buyers, that is a cheaper entry point. And Oppenheimer analyst Ittai Kidron, who has covered the software sector for more than two decades, gave the stock an Outperform rating with a $450 price target.

When he gave the rating, Kidron said he expects Palo Alto to post modest first-quarter fiscal 2027 revenue above $3.305 billion. He believes the company’s revenue will be helped by the recent purchases of CyberArk and Chronosphere. Still, investors should watch the November 18 earnings release closely to learn more about the company.

MongoDB is quietly benefiting from the AI shift

MongoDB runs a cloud database that stores large amounts of data for modern apps and AI tools. Chatbots and smart product features usually need a database to store their data, so MongoDB sells a product with growing demand.

Related: Goldman Sachs sends CoreWeave shareholders a surprising signal

BTIG analyst Gray Powell recently started coverage on MDB with a Buy rating and a $417 price target. His research suggests that MongoDB can grow its revenue by about 24% a year for the next three years, TradingView reported. That is more than the company’s target of over 20%.

Powell pointed out that older databases are being replaced faster than expected because of AI applications, MongoDB 9.0, and the Voyage AI acquisition. That means MongoDB has a strong business right now. To track its performance, watch the company’s third-quarter earnings call on December 1.

Costco’s $13 billion cash payout is winning over nervous investors

Costco earns most of its profit from annual membership fees. Those fees keep coming in no matter what happens to the economy.

More Software Stocks:

Oppenheimer’s Rupesh Parikh gave Costco an Outperform rating with a $1,160 target. His reason for supporting the stock grew stronger on November 10, when Costco declared a $30 per share special dividend, in a report filed with the SEC. That dividend is worth about $13.3 billion. The company also announced a new $4 billion buyback running through 2030.

What investors should think about before buying

Although analysts recommend these stocks as good long-term picks, they still have their risks. Depending on Palo Alto’s upcoming earnings report, the stock could move higher or lower. MongoDB also has its own risks. The company faces fierce competition from Oracle and other big cloud providers. Meanwhile, Costco trades at a high valuation, so if the company reports a weak quarter, the stock could fall.

If you’re thinking of buying any of those stocks, I usually recommend that new buyers spread their investment over several weeks rather than putting all their money in at once. That way, even if the company has a bad quarter or the broader market dips, you can have a second chance to enter at a better price.

More Stocks News