testing the addition of nivolumab to standard treatment for patients with metastatic or unresectable colorectal cancer that have a braf mutation

Conditions: Metastatic Colon Adenocarcinoma; Metastatic Rectal Adenocarcinoma; Stage III Colon Cancer AJCC v8; Stage III Rectal Cancer AJCC v8; Stage IV Colon Cancer AJCC v8; Stage IV Rectal Cancer AJCC v8; Unresectable Colon Adenocarcinoma; Unresectable Rectal Adenocarcinoma

Summary: this phase ii trial tests whether adding nivolumab to the usual treatment (encorafenib and cetuximab) works better than the usual treatment alone to shrink tumors in patients with colorectal cancer that has spread to other places in the body (metastatic) or that cannot be removed by surgery (unresectable) and whose tumor has a mutation in a gene called braf. encorafenib is in a class of medications called kinase inhibitors. it is used in patients whose cancer has a certain mutation (change) in the braf gene. it works by blocking the action of mutated braf that signals cancer cells to multiply. this helps to stop or slow the spread of cancer cells. cetuximab is in a class of medications called monoclonal antibodies. it binds to a protein called egfr, which is found on some types of cancer cells. this may help keep cancer cells from growing. immunotherapy with monoclonal antibodies, such as nivolumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. giving nivolumab in combination with encorafenib and cetuximab may be more effective than encorafenib and cetuximab alone at stopping tumor growth and spreading in patients with metastatic or unresectable braf-mutant colorectal cancer.

primary objective: i. to compare progression-free survival (pfs) per response evaluation criteria in solid tumors (recist) 1.1 in patients with microsatellite stable (mss), braf\^v600e metastatic and/or unresectable colorectal cancer (crc) randomized to treatment with nivolumab + encorafenib + cetuximab compared to encorafenib + cetuximab. secondary objectives: i. to compare overall response rate (orr), including confirmed and unconfirmed, complete and partial response, according to recist 1.1 criteria between the two arms. ii. to compare overall survival (os) between the two arms. iii. to compare duration of response between the two arms. iv. to compare safety and tolerability between the two arms. v. to assess immune-related pfs using modified response criteria adapted for immunotherapy (irrc-pfs) in patients treated with nivolumab + encorafenib + cetuximab. banking objective: i. to bank tissue and blood specimens for future correlative studies. outline: patients are randomized to 1 of 2 arms. arm i: patients receive encorafenib orally (po) once daily (qd) on days 1-28, cetuximab intravenously (iv) on days 1 and 15, and nivolumab iv on day 1. cycles repeat every 28 days in the absence of disease progression or unacceptable toxicity. arm ii: patients receive encorafenib po qd on days 1-28 and cetuximab iv on days 1 and 15. cycles repeat every 28 days in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed until death or 3 years after registration, whichever occurs first.

Eligibility criteria:
inclusion criteria: * participants must have a histologically or cytologically confirmed diagnosis of adenocarcinoma of the colon or rectum. the date of diagnosis will be determined according to the pathologic date of diagnosis * participants must have measurable disease according to recist1.1 criteria. computed tomography (ct) scans or magnetic resonance imaging (mris) used to assess measurable disease must have been completed within 28 days prior to registration. ct scans or mris used to assess non-measurable disease must have been completed within 42 days prior to registration. all disease must be assessed and documented on the baseline tumor assessment form * participants must have documented unresectable and/or metastatic disease on ct or mri imaging. all disease must be assessed and documented on the baseline tumor assessment form * participants must have braf\^v600e mutated colorectal cancer as tested in a clinical laboratory improvement act (clia)-certified laboratory * participants must have proficient mismatch repair (pmmr) or microsatellite stable (mss) status as tested in a clia-certified laboratory and documented by the treating clinician. proficient mismatch repair status can be determined by intact expression by immunohistochemistry of all 4 mismatch repair proteins (mlh1, msh2, msh6, and pms2). microsatellite instability can be determined by polymerase chain reaction (pcr) * participants with brain metastases must have completed surgery or radiation therapy \>= 28 days prior to registration. these participants must have a ct or mri of the brain showing no new or enlarging lesions within 42 days prior to registration. these participants must also be neurologically asymptomatic and without corticosteroid treatment for at least 7 days prior to registration. metastatic brain parenchymal disease must have been treated and participant must be off steroids for 7 days prior to registration. the presence of leptomeningeal disease (lmd) is not considered stable disease, and participants with lmd are not eligible for this study * participants with known evidence of chronic hepatitis b virus (hbv) infection must have undetectable hbv viral load on suppressive therapy within 28 days prior to registration * participants with a history of hepatitis c virus (hcv) infection must have been treated and cured. participants with hcv infection who are currently on treatment must have an undetectable hcv viral load within 28 days prior to registration * participants must have had one or two prior regimens of systemic chemotherapy for metastatic or locally advanced, unresectable disease. (a maintenance regimen of 5-fluorouracil or capecitabine, with or without bevacizumab, should not be counted as a separate line of treatment. the re-introduction of an initially successful induction regimen will not be counted as one additional line of treatment). prior treatment for metastatic disease is not required for patients who experienced disease recurrence during or within 6 months of completion of adjuvant chemotherapy * participants must be of age \>= 18 years at the time of informed consent * participants must have a zubrod performance status of 0 or 1 * participants must have a complete medical history and physical exam within 28 days prior to registration * absolute neutrophil count \>= 1.0 x 10\^3/ul (within 28 days prior to registration) * hemoglobin \>= 9 g/dl (within 28 days prior to registration) * platelets \>= 75 x 10\^3/ul (within 28 days prior to registration) * total bilirubin =\< 1.5 x institutional upper limit of normal (uln) (within 28 days prior to registration) * aspartate aminotransferase (ast)/alanine aminotransferase (alt) =\< 3 x institutional uln (within 28 days prior to registration) * if liver metastases are present, then it is acceptable for ast level =\< 5.0 x uln, and/or an alt level =\< 5.0 x uln (within 28 days prior to registration) * participants must have serum creatinine =\ = 50 ml/min using the cockroft-gault formula. this specimen must have been drawn and processed within 28 days prior to registration * participants must be able to swallow and retain pills * participants must have adequate cardiac function. participants with known history or current symptoms of cardiac disease, or history of treatment with cardiotoxic agents, must have a clinical risk assessment of cardiac function using the new york heart association functional classification. to be eligible for this trial, participants must be class 2 or better * participants must be offered the opportunity to participate in specimen banking. with participant consent, specimens must be collected and submitted via the southwest oncology group (swog) specimen tracking system * participants must be informed of the investigational nature of this study and must sign and give informed consent in accordance with institutional and federal guidelines. * note: as a part of the open registration process, the treating institution's identity is provided in order to ensure that the current (within 365 days) date of institutional review board approval for this study has been entered in the system exclusion criteria: * participants must not have a known positive serology for human immunodeficiency virus (hiv). encorafenib is contraindicated with concomitant use of non-nucleoside analog reverse transcriptase inhibitors like efavirenz and etravirine. in addition, it is recommended in the investigator brochure of encorafenib to avoid using encorafenib with protease inhibitors. therefore, because all participants on this study would receive encorafenib for either randomized arm of treatment, participants with hiv who receive these components of highly active antiretroviral therapy (haart) would be at high risk for complications of drug-drug interaction * participants must not have had prior treatment with a braf inhibitor (including, but not limited to, encorafenib, dabrafenib, or vemurafenib), mek inhibitor (including, but not limited to, trametinib, selumetinib, or binimetinib), or erk inhibitor (of note, regorafenib is not considered a braf inhibitor for the context of eligibility criteria) * participants must not have had prior treatment with anti-egfr therapies * participants must not have had prior treatment with an anti-pd-1, anti-pd-l1, anti-pd-l2, anti-ctla-4 antibody, or any other antibody or drug specifically targeting t-cell co-stimulation or immune checkpoint pathways * participants must not have a condition requiring systemic treatment with either corticosteroids (\> 10 mg daily prednisone equivalents) or other immunosuppressive medications within 14 days of registration. inhaled or topical steroids and adrenal replacement doses \ = 7 days prior to registration * participants must not have received a live vaccine within 30 days prior to study registration. seasonal flu and covid vaccines that do not contain a live virus are permitted * participants must not be receiving any other investigational agents * participants must not have impaired gastrointestinal function or disease that may significantly alter the absorption of study drug (e.g., ulcerative diseases, uncontrolled vomiting, malabsorption syndrome, small bowel resection with decreased intestinal absorption) * participants must not have a history of inflammatory bowel disease, (including ulcerative colitis and crohn's disease), symptomatic autoimmune disease (e.g., rheumatoid arthritis, systemic progressive sclerosis \[scleroderma\], systemic lupus erythematosus, autoimmune vasculitis \[e.g., wegener's granulomatosis\]); central nervous system (cns) or motor neuropathy considered of autoimmune origin (e.g., guillain-barre syndrome and myasthenia gravis, multiple sclerosis). * note: participants with graves' disease will be allowed * participants must not have a history of pneumonitis that has required oral or intravenous (iv) steroids within the last 12 months * participants must not have a history of a grade 3 or 4 allergic reaction attributed to humanized or human monoclonal antibody therapy * participants must not have a history of a prior allogeneic tissue or solid organ transplant * participants must not have a history of acute coronary syndromes (including myocardial infarction, unstable angina, coronary artery bypass grafting, coronary angioplasty, or stenting) within 6 months prior to study registration * participants must not have uncontrolled blood pressure and hypertension within 28 days prior to registration. * uncontrolled blood pressure and hypertension is defined as systolic blood pressure (sbp) \> 170 mmhg or diastolic blood pressure (dbp) \> 100 mmhg within 28 days prior to registration. participants are permitted to be receiving multiple anti-hypertensive medications (unless otherwise indicated in the study). all blood pressure measurements within the 28 days prior to registration must be sbp =\< 170 and dbp =\< 100. an exception can be made by a healthcare provider for a participant with a single blood pressure elevation who upon rechecking has a normal blood pressure * participants must not have a prior or concurrent malignancy whose natural history or treatment (in the opinion of the treating physician) has the potential to interfere with the safety or efficacy assessment of the investigational regimen or requires concurrent therapy * participants must not be pregnant or nursing. individuals who are of reproductive potential must have agreed to use an effective contraceptive method with details provided as a part of the consent process. a person who has had menses at any time in the preceding 12 consecutive months or who has semen likely to contain sperm is considered to be of "reproductive potential." in addition to routine contraceptive methods, "effective contraception" also includes refraining from sexual activity that might result in pregnancy and surgery intended to prevent pregnancy (or with a side-effect of pregnancy prevention) including hysterectomy, bilateral oophorectomy, bilateral tubal ligation/occlusion and vasectomy with testing showing no sperm in the semen * participants must not be planning treatment with other systemic anti-cancer agents (e.g., chemotherapy, hormonal therapy, immunotherapy) or other treatments not part of protocol-specified anti-cancer therapy including concurrent investigational agents of any type