W2s with double taxation in two nonresident states

We have two W2s (from two separate companies) which both have the wages listed as taxable income in CA & MD. Only the MD portion shows any income tax withholding off the wages, but the state wage amounts are the same as the total. I'm assuming this is a double taxation situation, but in this case, deals with two states we are nonresidents of (i.e. we live in OR). I've only seen this addressed in TT between a nonresident & resident state, and need help ensuring we aren't double taxed in these nonresident states. Thanks.