Short-term to intermediate-term corporate bond funds are available. The bond fund vehicle helps manage the credit risk, while the short terms help manage inflation and interest rate risk. Corporate bond funds will have fewer Treasuries bonds than a general-purpose short-term bond fund: it sounds like you're interested in things further out along the risk curve than a 0.48% return on a 5-year bond, and thus don't care for the Treasuries.
Corporate bonds are generally safer than stocks because, in bankruptcy, all your bondholders have to be paid in full before any equity-holders get a penny. Stocks are much more volatile, since they're essentially worth the value of their profits after paying all their debt, taxes, and other expenses.
As far as stocks are concerned, they're not very good for the short term at all. One of the stabler stock funds would be something like the Vanguard Equity Income Fund, and it cautions:
This fund is designed to provide investors with an above-average level
of current income while offering exposure to the stock market. Since
the fund typically invests in companies that are dedicated to
consistently paying dividends, it may have a higher yield than other
Vanguard stock mutual funds. The fund’s emphasis on slower-growing,
higher-yielding companies can also mean that its total return may not
be as strong in a significant bull market. This income-focused fund
may be appropriate for investors who have a long-term investment goal
and a tolerance for stock market volatility.
Even the large-cap stable companies can have their value fall dramatically in the short term. Look at its price chart; 2008 was brutal. Avoid stocks if you need to spend your money within a couple of years.
Whatever you choose, read the prospectus to understand the risks.