personalized peptide vaccine in treating patients with advanced pancreatic cancer or colorectal cancer

Conditions: Metastatic Colorectal Adenocarcinoma; Metastatic Pancreatic Ductal Adenocarcinoma; Stage IV Colorectal Cancer AJCC v7; Stage IV Pancreatic Cancer AJCC v6 and v7; Stage IVA Colorectal Cancer AJCC v7; Stage IVB Colorectal Cancer AJCC v7

Summary: this phase i trial studies the side effects and best way to give personalized peptide vaccine in patients with pancreatic or colorectal cancer that has spread to other places in the body and usually cannot be cured or controlled with treatment (advanced). personalized peptide vaccine is a vaccine developed from patient's own tumor cells and blood in order to use as a biological therapy. biological therapies, such as personalized peptide vaccine may attack tumor cells and stop them from growing or kill them.

primary objectives: i. demonstrate that developing a custom vaccine for metastatic pancreatic ductal adenocarcinoma (pda) and colorectal cancer (crc) patients is feasible. (cohorts a and b) ii. show that a custom peptide-based vaccine in combination with imiquiomod, pembrolizumab, and/or sotigalimab (apx005m) is safe. (cohorts a and b and c and d) secondary objectives: i. determine the clinical benefit of the peptide vaccine alone or combined with pembrolizumab or pembrolizumab and apx005m. (cohorts a and b and c and d) ii. demonstrate the antigenicity of each vaccine. (cohorts a and b and c and d) iii. the change in neoantigen-specific t cell responses at 12 weeks after initiation of personalized peptide vaccination. (cohorts c and d) iv. relapse-free survival and circulating tumor deoxyribonucleic acid (ctdna) clearance rate. (cohorts c and d) outline: patients are assigned to 1 of 3 cohorts. cohort a: patients receive personalized synthetic tumor-associated peptide vaccine therapy subcutaneously (sc) on day 1 of weeks 0, 1, 3, 4, 6, 12, and 24. beginning 15 minutes after each vaccine is administered, patients then receive imiquimod cream topically in the absence of disease progression or unacceptable toxicity. patients also undergo computed tomography (ct) or magnetic resonance imaging (mri) scans at baseline and at weeks 0 and 6, then every 3 months, and at week 39. cohort b: patients receive personalized synthetic tumor-associated peptide vaccine therapy sc on day 1 of weeks 0, 1, 3, 4, 6, 12, and 24. beginning 15 minutes after each vaccine is administered, patients receive imiquimod cream topically. patients also receive pembrolizumab intravenously (iv) over 30 minutes every 3 weeks until week 24 in the absence of disease progression or unacceptable toxicity. patients also undergo ct or mri scans at baseline and at weeks 0 and 6, then every 3 months, and at week 39. cohorts c and d: patients receive personalized synthetic tumor-associated peptide vaccine therapy sc on day 1 of weeks 0, 1, 3, 4, 6, 9, 12, 15, 18, 21, and 24. beginning 15 minutes after each vaccine is administered, patients receive imiquimod cream topically. patients also receive pembrolizumab iv over 30 minutes every 3 weeks until week 24 in the absence of disease progression or unacceptable toxicity. beginning about 1 hour after each vaccine, patients also receive sotigalimab iv over 60 minutes on day 1 of weeks 0, 1, 3, 4, 6, 9, 12, 15, 18, 21, and 24 in the absence of disease progression or unacceptable toxicity. patients also undergo ct or mri scans at baseline and weeks 6,12, and 24, then every 3 months, and at week 39. after completion of study treatment, patients are followed for 6 months.

Eligibility criteria:
inclusion criteria: * cohorts a and b: patients must have metastatic pancreatic ductal adenocarcinoma (pda) or metastatic colorectal cancer (crc) to be eligible (pda patients with an elevated tumor marker following a primary pancreatic surgery would be eligible) * patients can have any lines (including zero) of prior therapy to sign consent prior to tissue harvest; vaccination will not take place until at least one line of standard chemotherapy is given * patients must have adequate fresh or frozen tissue available or planned to be obtained; for cohort c and d patients should have estimated adequate tumor tissue that is planned to be resected (approximately \> 1 cm cross-sectional size on radiographic imaging); subjects may have tissue collected under protocol pa15-0176 * age \>= 18 years * eastern cooperative oncology group (ecog) performance status =\ = 70%) * life expectancy of greater than 6 months (12 months for cohort c and 9 months for cohort d) * absolute neutrophil count (anc) \>= 1,000/mcl * platelets \>= 75,000/mcl * total bilirubin =\< 2.0 x institutional upper limit of normal * aspartate aminotransferase (ast)(serum glutamic oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt)(serum glutamate pyruvate transaminase \[sgpt\]) =\< 2.5 x institutional upper limit of normal (=\< 5 x if known liver metastases or due to ongoing chemotherapy treatment defined as chemotherapy within 3 weeks prior to lab draw) (except in gilbert's disease where direct bilirubin will be used) * calculated creatinine clearance \>= 40 ml/min/1.73 m\^2 * patients must demonstrate an ability to understand and the willingness to sign a written informed consent document * the effects of a peptide-based vaccine, pembrolizumab or apx005m on the developing human fetus are unknown; for this reason, women of child-bearing potential and men must agree to use adequate contraception at study entry and for the duration of study participation; should a woman become pregnant or suspect she is pregnant while participating in this study, she should inform her treating physician immediately; birth control specifications: unless surgically sterile by bilateral tubal ligation or vasectomy of partner(s), sexually active participants must use birth control during and for \> 120 days after the study; abstinence is also an acceptable form of birth control * for cohort c only: patients must have metastatic colorectal cancer (crc) and are planned to or have undergone complete (r0 or r1) metastectomy/ies (liver or peritoneal or lung or other organ site); the presence of nonspecific lung lesions \< 1 cm are allowed * for cohort c only: agreement to have post-operative blood test to determine plasma mutation ctdna positivity drawn within 6 weeks following surgical resection * for cohort d only: patients must have localized or metastatic pda and are planned for complete resection (r0 or r1) * for cohort d only: agreement to have post-operative blood test to determine plasma mutation ctdna positivity drawn within 6 weeks following surgical resection * just prior to first vaccination (within 21 days): ecog performance status 0-1 (karnofsky \>= 60%) * just prior to first vaccination (within 21 days): life expectancy of greater than 6 months * just prior to first vaccination (within 21 days): patients must have either measurable disease per response criteria in solid tumors (recist) version (v)1.1 or evaluable disease defined as an elevated tumor biomarker (ca19-9, carcinoembryonic antigen \[cea\] or ctdna mutation); pancreatic cancer patients with an elevated tumor marker following a primary pancreatic surgery would be eligible (cohorts a and b only) * for cohort c and d only: patients must have plasma mutation ctdna positivity within 6 weeks following surgical resection or ctdna positivity on any serial testing timepoint if the initial ctdna timepoint was negative or testing failure occurred. \* an elevated ca19-9 (above mdacc upper limit of normal, \> 35 u/ml) will serve as a ctdna positive equivalent (cohort d only) * for cohort c and d only: completion of all planned adjuvant anti-cancer therapy * for cohort c and d only: radiographic disease status is not relevant to inclusion for treatment exclusion criteria: * known history of testing positive for human immunodeficiency virus (hiv) or known acquired immunodeficiency syndrome (aids); hiv-positive patients on combination antiretroviral therapy are ineligible because of the potential for lack of efficacy of therapeutic cancer vaccine * patients with known brain metastases should be excluded from this clinical trial because of their poor prognosis and because they often develop progressive neurologic dysfunction that would confound the evaluation of neurologic and other adverse events * subjects with active, known or suspected autoimmune disease; subjects with vitiligo, type i diabetes mellitus, residual hypothyroidism due to autoimmune condition only requiring hormone replacement, psoriasis not requiring systemic treatment, or conditions not expected to recur in the absence of an external trigger are permitted to enroll * subjects with a condition requiring systemic treatment with either corticosteroids (\> 10 mg daily prednisone equivalents) or other immunosuppressive medications; inhaled or topical steroids and adrenal replacement doses \> 10 mg daily prednisone equivalents are permitted in the absence of active autoimmune disease * uncontrolled concurrent illness including, but not limited to ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * women of child bearing potential who are pregnant or breastfeeding; women with a positive pregnancy test at enrollment or prior to administration of vaccine * has history of (non-infectious) pneumonitis that required steroids, evidence of interstitial lung disease or active, non-infectious pneumonitis * known history of active tb (bacillus tuberculosis) * hypersensitivity to vaccine, pembrolizumab, imiquimod or apx005m or any of its excipients * has a known additional malignancy that is progressing or requires active treatment * active coagulopathy * history of arterial thrombosis within 3 months of starting study treatment * history of new york heart association class 3-4 heart failure or myocardial infarction within 6 months of starting therapy * has a known history of hepatitis b (defined as being known hepatitis b surface antigen \[hbsag\] reactive) or known active hepatitis c virus (defined as being known hepatitis c virus \[hcv\] ribonucleic acid \[rna\] \[qualitative\] positive) infection * just prior to first vaccination (within 21 days): patients who have had chemotherapy or radiotherapy within 2 weeks prior to first treatment or those who have not recovered to baseline from adverse events due to agents administered more than 2 weeks earlier (washout period) * just prior to first vaccination (within 21 days): * women of child bearing potential who are pregnant or breastfeeding * women with a positive pregnancy test prior to administration of vaccine * just prior to first vaccination (within 21 days): uncontrolled concurrent illness including, but not limited to ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * just prior to first vaccination (within 21 days): patients may not be receiving any other investigational agents within 2 weeks prior to first treatment * just prior to first vaccination (within 21 days): has received a live vaccine within 30 days of planned start of study therapy \* note: seasonal influenza vaccines and covid-19 vaccines for injection are generally inactivated flu vaccines and are allowed; however intranasal influenza vaccines (e.g., flu-mist) are live attenuated vaccines, and are not allowed