OBJECTIVES: I. Determine the toxicity of ras peptide cancer vaccine plus immunological adjuvant QS21 in patients with advanced pancreatic or colorectal adenocarcinoma. II. Determine the immunologic effects of this treatment regimen in these patients. III. Determine the antitumor effect of this treatment regimen in these patients.